Class ExtendedMetadata
Inheritance
System.Object
ExtendedMetadata
Assembly: EPiServer.Shell.dll
Version: 11.20.7
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
Declaration
public IEnumerable<Attribute> Attributes { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.Attribute> |
|
Declaration
public string ClientEditingClass { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public string ClientEditingPackage { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public IDictionary<string, object> CustomEditorSettings { get; }
Property Value
Type |
Description |
System.Collections.Generic.IDictionary<System.String, System.Object> |
|
Declaration
public IMetadataProvider CustomMetadataProvider { get; set; }
Property Value
Declaration
[Obsolete("This property is obsolete. Use InitialValue instead.", false)]
public object DefaultValue { get; set; }
Property Value
Type |
Description |
System.Object |
|
Declaration
public IDictionary<string, object> EditorConfiguration { get; }
Property Value
Type |
Description |
System.Collections.Generic.IDictionary<System.String, System.Object> |
|
Declaration
public string GroupName { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public GroupSettings GroupSettings { get; set; }
Property Value
Declaration
public object InitialValue { get; set; }
Property Value
Type |
Description |
System.Object |
|
Declaration
public string LayoutClass { get; set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public IEnumerable<PropertyMapping> MappedProperties { get; }
Property Value
Declaration
public IDictionary<string, object> OverlayConfiguration { get; }
Property Value
Type |
Description |
System.Collections.Generic.IDictionary<System.String, System.Object> |
|
Declaration
public ExtendedMetadata Parent { get; set; }
Property Value
Declaration
public override IEnumerable<ModelMetadata> Properties { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<System.Web.Mvc.ModelMetadata> |
|
Declaration
public Type SelectionFactoryType { get; set; }
Property Value
Type |
Description |
System.Type |
|
Declaration
public string UIHint { get; set; }
Property Value
Type |
Description |
System.String |
|
Methods
Declaration
public Dictionary<string, object> GetEditorSettings(LocalizationService localizationService)
Parameters
Returns
Type |
Description |
System.Collections.Generic.Dictionary<System.String, System.Object> |
|
Declaration
public virtual void InitializeFromAttributes(IEnumerable<Attribute> attributes)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.Attribute> |
attributes |
|
Declaration
protected virtual void ReadSettingsFromClientSideEditorAttribute(ClientEditorAttribute editorAttribute)
Parameters
Declaration
protected virtual void ReadSettingsFromDataTypeAttribute(DataTypeAttribute attribute)
Parameters
Type |
Name |
Description |
System.ComponentModel.DataAnnotations.DataTypeAttribute |
attribute |
|
Declaration
protected virtual void ReadSettingsFromDisplayAttributes(IEnumerable<Attribute> attributes)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.Attribute> |
attributes |
|
Declaration
protected virtual void ReadSettingsFromDisplayFormatAttribute(DisplayFormatAttribute displayFormatAttribute, DataTypeAttribute dataTypeAttribute)
Parameters
Type |
Name |
Description |
System.ComponentModel.DataAnnotations.DisplayFormatAttribute |
displayFormatAttribute |
|
System.ComponentModel.DataAnnotations.DataTypeAttribute |
dataTypeAttribute |
|
Declaration
protected virtual void ReadSettingsFromEditableAttributes(IEnumerable<Attribute> attributes)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.Attribute> |
attributes |
|
Declaration
protected virtual void ReadSettingsFromEditorDescriptorAttribute(EditorDescriptorAttribute editorDescriptorAttribute)
Parameters
Declaration
protected void ReadSettingsFromGroupSettingsAttribute(GroupSettingsAttribute groupSettingsAttribute)
Parameters
Declaration
protected virtual void ReadSettingsFromHiddenInputAttribute(HiddenInputAttribute hiddenInputAttribute)
Parameters
Type |
Name |
Description |
System.Web.Mvc.HiddenInputAttribute |
hiddenInputAttribute |
|
Declaration
protected void ReadSettingsFromHintAttributes(IEnumerable<Attribute> attributes)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.Attribute> |
attributes |
|
Declaration
protected virtual void ReadSettingsFromRequiredAttribute(RequiredAttribute requiredAttribute)
Parameters
Type |
Name |
Description |
System.ComponentModel.DataAnnotations.RequiredAttribute |
requiredAttribute |
|
Declaration
protected virtual void ReadSettingsFromScaffoldColumnAttribute(ScaffoldColumnAttribute scaffoldColumnAttribute)
Parameters
Type |
Name |
Description |
System.ComponentModel.DataAnnotations.ScaffoldColumnAttribute |
scaffoldColumnAttribute |
|
Declaration
protected virtual void ReadSettingsFromUIHintAttributes(IEnumerable<UIHintAttribute> attributes)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.ComponentModel.DataAnnotations.UIHintAttribute> |
attributes |
|
Extension Methods