ModelMetadataProvider Class

Definition

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.

Applies to