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

Class ExtendedMetadata

Inheritance
System.Object
ExtendedMetadata
Namespace: EPiServer.Shell.ObjectEditing
Assembly: EPiServer.Shell.dll
Version: 11.20.7
Syntax
public class ExtendedMetadata : DataAnnotationsModelMetadata

Constructors

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

Declaration
public ExtendedMetadata(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

Attributes

Declaration
public IEnumerable<Attribute> Attributes { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Attribute>

ClientEditingClass

Declaration
public string ClientEditingClass { get; set; }
Property Value
Type Description
System.String

ClientEditingPackage

Declaration
public string ClientEditingPackage { get; set; }
Property Value
Type Description
System.String

CustomEditorSettings

Declaration
public IDictionary<string, object> CustomEditorSettings { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, System.Object>

CustomMetadataProvider

Declaration
public IMetadataProvider CustomMetadataProvider { get; set; }
Property Value
Type Description
IMetadataProvider

DefaultValue

Declaration
[Obsolete("This property is obsolete. Use InitialValue instead.", false)]
public object DefaultValue { get; set; }
Property Value
Type Description
System.Object

EditorConfiguration

Declaration
public IDictionary<string, object> EditorConfiguration { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, System.Object>

GroupName

Declaration
public string GroupName { get; set; }
Property Value
Type Description
System.String

GroupSettings

Declaration
public GroupSettings GroupSettings { get; set; }
Property Value
Type Description
GroupSettings

InitialValue

Declaration
public object InitialValue { get; set; }
Property Value
Type Description
System.Object

LayoutClass

Declaration
public string LayoutClass { get; set; }
Property Value
Type Description
System.String

MappedProperties

Declaration
public IEnumerable<PropertyMapping> MappedProperties { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<PropertyMapping>

OverlayConfiguration

Declaration
public IDictionary<string, object> OverlayConfiguration { get; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, System.Object>

Parent

Declaration
public ExtendedMetadata Parent { get; set; }
Property Value
Type Description
ExtendedMetadata

Properties

Declaration
public override IEnumerable<ModelMetadata> Properties { get; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.Web.Mvc.ModelMetadata>

SelectionFactoryType

Declaration
public Type SelectionFactoryType { get; set; }
Property Value
Type Description
System.Type

UIHint

Declaration
public string UIHint { get; set; }
Property Value
Type Description
System.String

Methods

GetEditorSettings(LocalizationService)

Declaration
public Dictionary<string, object> GetEditorSettings(LocalizationService localizationService)
Parameters
Type Name Description
LocalizationService localizationService
Returns
Type Description
System.Collections.Generic.Dictionary<System.String, System.Object>

InitializeFromAttributes(IEnumerable<Attribute>)

Declaration
public virtual void InitializeFromAttributes(IEnumerable<Attribute> attributes)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Attribute> attributes

ReadSettingsFromClientSideEditorAttribute(ClientEditorAttribute)

Declaration
protected virtual void ReadSettingsFromClientSideEditorAttribute(ClientEditorAttribute editorAttribute)
Parameters
Type Name Description
ClientEditorAttribute editorAttribute

ReadSettingsFromDataTypeAttribute(DataTypeAttribute)

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

ReadSettingsFromDisplayAttributes(IEnumerable<Attribute>)

Declaration
protected virtual void ReadSettingsFromDisplayAttributes(IEnumerable<Attribute> attributes)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Attribute> attributes

ReadSettingsFromDisplayFormatAttribute(DisplayFormatAttribute, DataTypeAttribute)

Declaration
protected virtual void ReadSettingsFromDisplayFormatAttribute(DisplayFormatAttribute displayFormatAttribute, DataTypeAttribute dataTypeAttribute)
Parameters
Type Name Description
System.ComponentModel.DataAnnotations.DisplayFormatAttribute displayFormatAttribute
System.ComponentModel.DataAnnotations.DataTypeAttribute dataTypeAttribute

ReadSettingsFromEditableAttributes(IEnumerable<Attribute>)

Declaration
protected virtual void ReadSettingsFromEditableAttributes(IEnumerable<Attribute> attributes)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Attribute> attributes

ReadSettingsFromEditorDescriptorAttribute(EditorDescriptorAttribute)

Declaration
protected virtual void ReadSettingsFromEditorDescriptorAttribute(EditorDescriptorAttribute editorDescriptorAttribute)
Parameters
Type Name Description
EditorDescriptorAttribute editorDescriptorAttribute

ReadSettingsFromGroupSettingsAttribute(GroupSettingsAttribute)

Declaration
protected void ReadSettingsFromGroupSettingsAttribute(GroupSettingsAttribute groupSettingsAttribute)
Parameters
Type Name Description
GroupSettingsAttribute groupSettingsAttribute

ReadSettingsFromHiddenInputAttribute(HiddenInputAttribute)

Declaration
protected virtual void ReadSettingsFromHiddenInputAttribute(HiddenInputAttribute hiddenInputAttribute)
Parameters
Type Name Description
System.Web.Mvc.HiddenInputAttribute hiddenInputAttribute

ReadSettingsFromHintAttributes(IEnumerable<Attribute>)

Declaration
protected void ReadSettingsFromHintAttributes(IEnumerable<Attribute> attributes)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Attribute> attributes

ReadSettingsFromRequiredAttribute(RequiredAttribute)

Declaration
protected virtual void ReadSettingsFromRequiredAttribute(RequiredAttribute requiredAttribute)
Parameters
Type Name Description
System.ComponentModel.DataAnnotations.RequiredAttribute requiredAttribute

ReadSettingsFromScaffoldColumnAttribute(ScaffoldColumnAttribute)

Declaration
protected virtual void ReadSettingsFromScaffoldColumnAttribute(ScaffoldColumnAttribute scaffoldColumnAttribute)
Parameters
Type Name Description
System.ComponentModel.DataAnnotations.ScaffoldColumnAttribute scaffoldColumnAttribute

ReadSettingsFromUIHintAttributes(IEnumerable<UIHintAttribute>)

Declaration
protected virtual void ReadSettingsFromUIHintAttributes(IEnumerable<UIHintAttribute> attributes)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.UIHintAttribute> attributes

Extension Methods