Class ExtensibleMetadataProvider
Inheritance
System.Object
ExtensibleMetadataProvider
Assembly: EPiServer.Shell.dll
Version: 11.20.7
[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
ExtensibleMetadataProvider(MetadataHandlerRegistry, LocalizationService, ServiceAccessor<HttpContextBase>, IEditorDefinitionRepository)
Declaration
[Obsolete]
public ExtensibleMetadataProvider(MetadataHandlerRegistry metadataHandlerRegistry, LocalizationService localizationService, ServiceAccessor<HttpContextBase> httpContext, IEditorDefinitionRepository editorDefinitionRepository)
Parameters
Properties
Declaration
public virtual MetadataHandlerRegistry MetadataHandlerRegistry { get; }
Property Value
Methods
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
Declaration
public virtual IEnumerable<ExtendedMetadata> GetMetadataForProperties(ExtendedMetadata parent, object container, Type containerType, IMetadataProvider customProvider)
Parameters
Returns
Extension Methods