DataAnnotationsModelMetadataProvider Class
Implements the default model metadata provider for ASP.NET MVC.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
System.Object
System.Web.Mvc.ModelMetadataProvider
System.Web.Mvc.AssociatedMetadataProvider
System.Web.Mvc.DataAnnotationsModelMetadataProvider
System.Web.Mvc.ModelMetadataProvider
System.Web.Mvc.AssociatedMetadataProvider
System.Web.Mvc.DataAnnotationsModelMetadataProvider
| Name | Description | |
|---|---|---|
![]() | DataAnnotationsModelMetadataProvider() | Initializes a new instance of the DataAnnotationsModelMetadataProvider class. |
The ModelMetadataProviders class sets this class as the default metadata provider for the MVC framework. You typically do not have to use this class directly. If you develop a custom attribute-based metadata provider, you can use this implementation as a guide.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
.jpeg?cs-save-lang=1&cs-lang=csharp)
.jpeg?cs-save-lang=1&cs-lang=csharp)