.NET Framework Class Library
DataAnnotationsModelMetadataProvider Constructor
Initializes a new instance of the DataAnnotationsModelMetadataProvider class.
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
Visual Basic
Public Sub New
C#
public DataAnnotationsModelMetadataProvider()
Visual C++
public:
DataAnnotationsModelMetadataProvider()
Remarks
The MVC framework calls this constructor and sets the DataAnnotationsModelMetadataProvider as the default metadata provider by using the ModelMetadataProviders class.
See Also