Share via


DataAnnotationsModelMetadata Constructor

Initializes a new instance of the DataAnnotationsModelMetadataProvider class.

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

Syntax

'Declaration
Public Sub New ( _
    provider As DataAnnotationsModelMetadataProvider, _
    containerType As Type, _
    modelAccessor As Func(Of Object), _
    modelType As Type, _
    propertyName As String, _
    displayColumnAttribute As DisplayColumnAttribute _
)
public DataAnnotationsModelMetadata(
    DataAnnotationsModelMetadataProvider provider,
    Type containerType,
    Func<Object> modelAccessor,
    Type modelType,
    string propertyName,
    DisplayColumnAttribute displayColumnAttribute
)
public:
DataAnnotationsModelMetadata(
    DataAnnotationsModelMetadataProvider^ provider, 
    Type^ containerType, 
    Func<Object^>^ modelAccessor, 
    Type^ modelType, 
    String^ propertyName, 
    DisplayColumnAttribute^ displayColumnAttribute
)

Parameters

  • containerType
    Type: System.Type
    The type of the container.

See Also

Reference

DataAnnotationsModelMetadata Class

System.Web.Mvc Namespace