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

Class ExtensibleMetadataProvider

Inheritance
System.Object
ExtensibleMetadataProvider
Namespace: EPiServer.Shell.ObjectEditing
Assembly: EPiServer.Shell.dll
Version: 11.20.7
Syntax
[ServiceConfiguration(typeof(ExtensibleMetadataProvider), Lifecycle = ServiceInstanceScope.Singleton)]
public class ExtensibleMetadataProvider : ExtendedDataAnnotationsModelMetadataProvider

Constructors

ExtensibleMetadataProvider(MetadataHandlerRegistry, LocalizationService, ServiceAccessor<HttpContextBase>)

Declaration
public ExtensibleMetadataProvider(MetadataHandlerRegistry metadataHandlerRegistry, LocalizationService localizationService, ServiceAccessor<HttpContextBase> httpContext)
Parameters
Type Name Description
MetadataHandlerRegistry metadataHandlerRegistry
LocalizationService localizationService
ServiceAccessor<System.Web.HttpContextBase> httpContext

ExtensibleMetadataProvider(MetadataHandlerRegistry, LocalizationService, ServiceAccessor<HttpContextBase>, IEditorDefinitionRepository)

Declaration
[Obsolete]
public ExtensibleMetadataProvider(MetadataHandlerRegistry metadataHandlerRegistry, LocalizationService localizationService, ServiceAccessor<HttpContextBase> httpContext, IEditorDefinitionRepository editorDefinitionRepository)
Parameters
Type Name Description
MetadataHandlerRegistry metadataHandlerRegistry
LocalizationService localizationService
ServiceAccessor<System.Web.HttpContextBase> httpContext
IEditorDefinitionRepository editorDefinitionRepository

Properties

MetadataHandlerRegistry

Declaration
public virtual MetadataHandlerRegistry MetadataHandlerRegistry { get; }
Property Value
Type Description
MetadataHandlerRegistry

Methods

CreateMetadata(IEnumerable<Attribute>, Type, Func<Object>, Type, String)

Declaration
protected override ModelMetadata CreateMetadata(IEnumerable<Attribute> attributes, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName)
Parameters
Type Name Description
System.Collections.Generic.IEnumerable<System.Attribute> attributes
System.Type containerType
System.Func<System.Object> modelAccessor
System.Type modelType
System.String propertyName
Returns
Type Description
System.Web.Mvc.ModelMetadata
Overrides

GetMetadataForProperties(ExtendedMetadata, Object, Type, IMetadataProvider)

Declaration
public virtual IEnumerable<ExtendedMetadata> GetMetadataForProperties(ExtendedMetadata parent, object container, Type containerType, IMetadataProvider customProvider)
Parameters
Type Name Description
ExtendedMetadata parent
System.Object container
System.Type containerType
IMetadataProvider customProvider
Returns
Type Description
System.Collections.Generic.IEnumerable<ExtendedMetadata>

Extension Methods