Class ExtensibleMetadataProvider
Extracts metadata for classes and properties and applies information from
system wide editor extenders registered in Metadata
Namespace: EPiServer.Shell.ObjectEditing
Assembly: EPiServer.Shell.dll
Version: 7.19.2Syntax
[ServiceConfiguration(typeof(ExtensibleMetadataProvider), Lifecycle = ServiceInstanceScope.Singleton)]
public class ExtensibleMetadataProvider : ExtendedDataAnnotationsModelMetadataProvider
Constructors
ExtensibleMetadataProvider()
Initializes a new instance of the Extensible
Declaration
[Obsolete("Use the parameterized constructor with the most parameters")]
public ExtensibleMetadataProvider()
ExtensibleMetadataProvider(MetadataHandlerRegistry)
Initializes a new instance of the Extensible
Declaration
[Obsolete("Use the parameterized constructor with the most parameters")]
public ExtensibleMetadataProvider(MetadataHandlerRegistry metadataHandlerRegistry)
Parameters
Type | Name | Description |
---|---|---|
Metadata |
metadataHandlerRegistry | The metadata registry. |
ExtensibleMetadataProvider(MetadataHandlerRegistry, LocalizationService)
Initializes a new instance of the Extensible
Declaration
[Obsolete("Use the parameterized constructor with the most parameters")]
public ExtensibleMetadataProvider(MetadataHandlerRegistry metadataHandlerRegistry, LocalizationService localizationService)
Parameters
Type | Name | Description |
---|---|---|
Metadata |
metadataHandlerRegistry | The metadata registry. |
Localization |
localizationService | The localization service. |
ExtensibleMetadataProvider(MetadataHandlerRegistry, LocalizationService, HttpContextBase)
Initializes a new instance of the Extensible
Declaration
public ExtensibleMetadataProvider(MetadataHandlerRegistry metadataHandlerRegistry, LocalizationService localizationService, HttpContextBase httpContextBase)
Parameters
Type | Name | Description |
---|---|---|
Metadata |
metadataHandlerRegistry | The metadata registry. |
Localization |
localizationService | The localization service. |
System. |
httpContextBase | HttpContextBase |
Properties
MetadataHandlerRegistry
Gets the metadata handler registry.
Declaration
public virtual MetadataHandlerRegistry MetadataHandlerRegistry { get; }
Property Value
Type | Description |
---|---|
Metadata |
The metadata handler registry. |
Methods
CreateMetadata(IEnumerable<Attribute>, Type, Func<Object>, Type, String)
Gets the metadata for the specified property.
Declaration
protected override ModelMetadata CreateMetadata(IEnumerable<Attribute> attributes, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName)
Parameters
Type | Name | Description |
---|---|---|
System. |
attributes | The attributes. |
System. |
containerType | The type of the container. |
System. |
modelAccessor | The model accessor. |
System. |
modelType | The type of the model. |
System. |
propertyName | The name of the property. |
Returns
Type | Description |
---|---|
System. |
The metadata for the property. |
Overrides
GetMetadataForProperties(ExtendedMetadata, Object, Type, IMetadataProvider)
Gets the metadata for properties.
Declaration
public virtual IEnumerable<ExtendedMetadata> GetMetadataForProperties(ExtendedMetadata parent, object container, Type containerType, IMetadataProvider customProvider)
Parameters
Type | Name | Description |
---|---|---|
Extended |
parent | The parent metadata. |
System. |
container | The container. |
System. |
containerType | Type of the container. |
IMetadata |
customProvider | The custom provider. |
Returns
Type | Description |
---|---|
System. |
The metadata for the properties of a given object/type. |