ModelMetadataProvider Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides an abstract base class for a custom metadata provider.
public abstract class ModelMetadataProvider
type ModelMetadataProvider = class
Public MustInherit Class ModelMetadataProvider
- Inheritance
-
ModelMetadataProvider
- Derived
Constructors
ModelMetadataProvider() |
When overridden in a derived class, initializes a new instance of the object that derives from the ModelMetadataProvider class. |
Methods
GetMetadataForProperties(Object, Type) |
Gets a ModelMetadata object for each property of a model. |
GetMetadataForProperty(Func<Object>, Type, String) |
Gets metadata for the specified property. |
GetMetadataForType(Func<Object>, Type) |
Gets metadata for the specified model accessor and model type. |