November Happy Hour will be moved to Thursday December 5th.

Class ContentDataMetadata

Inheritance
System.Object
ContentDataMetadata
Inherited Members
Namespace: EPiServer.Cms.Shell.UI.ObjectEditing
Assembly: EPiServer.Cms.Shell.UI.dll
Version: 11.20.7
Syntax
public class ContentDataMetadata : ExtendedMetadata

Constructors

ContentDataMetadata(Type, Func<Object>, Type, String, DisplayColumnAttribute, ExtendedDataAnnotationsModelMetadataProvider, LocalizationService, HttpContextBase)

Declaration
public ContentDataMetadata(Type containerType, Func<object> modelAccessor, Type modelType, string propertyName, DisplayColumnAttribute displayColumnAttribute, ExtendedDataAnnotationsModelMetadataProvider provider, LocalizationService localizationService, HttpContextBase httpContextBase)
Parameters
Type Name Description
System.Type containerType
System.Func<System.Object> modelAccessor
System.Type modelType
System.String propertyName
System.ComponentModel.DataAnnotations.DisplayColumnAttribute displayColumnAttribute
ExtendedDataAnnotationsModelMetadataProvider provider
LocalizationService localizationService
System.Web.HttpContextBase httpContextBase

Properties

OwnerContent

Declaration
public IContentData OwnerContent { get; set; }
Property Value
Type Description
IContentData

Methods

AddValidator(ModelValidator)

Declaration
public void AddValidator(ModelValidator validator)
Parameters
Type Name Description
System.Web.Mvc.ModelValidator validator

GetValidators(ControllerContext)

Declaration
public override IEnumerable<ModelValidator> GetValidators(ControllerContext context)
Parameters
Type Name Description
System.Web.Mvc.ControllerContext context
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Web.Mvc.ModelValidator>

ReadSettingsFromDataTypeAttribute(DataTypeAttribute)

Declaration
protected override void ReadSettingsFromDataTypeAttribute(DataTypeAttribute attribute)
Parameters
Type Name Description
System.ComponentModel.DataAnnotations.DataTypeAttribute attribute
Overrides

SetValidators(IEnumerable<ModelValidator>)

Declaration
public void SetValidators(IEnumerable<ModelValidator> validators)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Web.Mvc.ModelValidator> validators

Extension Methods