Interface IMetadataProvider
Implement this interface to be able to provide metadata for an entire class and it's sub properties.
Namespace: EPiServer.Shell.ObjectEditing
Assembly: EPiServer.Shell.dll
Version: 7.19.2Syntax
public interface IMetadataProvider : IMetadataHandler
Methods
CreateMetadata(IEnumerable<Attribute>, Type, Func<Object>, Type, String)
Gets the metadata for the specified property.
Declaration
ExtendedMetadata 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 |
---|---|
Extended |
The metadata for the property. |
GetMetadataForProperties(Object, Type)
Gets the metadata for the properties of a given type.
Declaration
IEnumerable<ExtendedMetadata> GetMetadataForProperties(object container, Type containerType)
Parameters
Type | Name | Description |
---|---|---|
System. |
container | The container. |
System. |
containerType | Type of the container. |
Returns
Type | Description |
---|---|
System. |
The metadata for the properties of the type. |