ModelMetadataProvider Class


Provides an abstract base class for a custom metadata provider.

Namespace:   System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

Inheritance Hierarchy



public abstract class ModelMetadataProvider
public ref class ModelMetadataProvider abstract 
type ModelMetadataProvider = class end
Public MustInherit Class ModelMetadataProvider


Name Description
System_CAPS_protmethod ModelMetadataProvider()

When overridden in a derived class, initializes a new instance of the object that derives from the ModelMetadataProvider class.


Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Object.)

System_CAPS_protmethod Finalize()

(Inherited from Object.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Object.)

System_CAPS_pubmethod GetMetadataForProperties(Object, Type)

Gets a ModelMetadata object for each property of a model.

System_CAPS_pubmethod GetMetadataForProperty(Func<Object>, Type, String)

Gets metadata for the specified property.

System_CAPS_pubmethod GetMetadataForType(Func<Object>, Type)

Gets metadata for the specified model accessor and model type.

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_protmethod MemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)


The AssociatedMetadataProvider class is an implementation of this abstract class.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

System.Web.Mvc Namespace

Return to top