DataAnnotationsModelMetadataProvider Class

Definition

Implements the default model metadata provider for ASP.NET MVC.

public class DataAnnotationsModelMetadataProvider : System.Web.Mvc.AssociatedMetadataProvider
type DataAnnotationsModelMetadataProvider = class
    inherit AssociatedMetadataProvider
Public Class DataAnnotationsModelMetadataProvider
Inherits AssociatedMetadataProvider
Inheritance
DataAnnotationsModelMetadataProvider

Constructors

DataAnnotationsModelMetadataProvider()

Initializes a new instance of the DataAnnotationsModelMetadataProvider class.

Methods

CreateMetadata(IEnumerable<Attribute>, Type, Func<Object>, Type, String)

Gets the metadata for the specified property.

FilterAttributes(Type, PropertyDescriptor, IEnumerable<Attribute>)

Gets a list of attributes.

(Inherited from AssociatedMetadataProvider)
GetMetadataForProperties(Object, Type)

Returns a list of properties for the model.

(Inherited from AssociatedMetadataProvider)
GetMetadataForProperty(Func<Object>, Type, PropertyDescriptor)

Returns the metadata for the specified property using the container type and property descriptor.

(Inherited from AssociatedMetadataProvider)
GetMetadataForProperty(Func<Object>, Type, String)

Returns the metadata for the specified property using the container type and property name.

(Inherited from AssociatedMetadataProvider)
GetMetadataForType(Func<Object>, Type)

Returns the metadata for the specified property using the type of the model.

(Inherited from AssociatedMetadataProvider)
GetTypeDescriptor(Type)

Returns the type descriptor from the specified type.

(Inherited from AssociatedMetadataProvider)

Applies to