DataAnnotationsModelMetadata Constructor

Visual Studio 2010

Initializes a new instance of the DataAnnotationsModelMetadataProvider class.

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

'Declaration
Public Sub New ( _
	provider As DataAnnotationsModelMetadataProvider, _
	containerType As Type, _
	modelAccessor As Func(Of Object), _
	modelType As Type, _
	propertyName As String, _
	displayColumnAttribute As DisplayColumnAttribute _
)

Parameters

provider
Type: System.Web.Mvc.DataAnnotationsModelMetadataProvider
The data-annotations model metadata provider.
containerType
Type: System.Type
The type of the container.
modelAccessor
Type: System.Func(Of Object)
The model accessor.
modelType
Type: System.Type
The type of the model.
propertyName
Type: System.String
The name of the property.
displayColumnAttribute
Type: System.ComponentModel.DataAnnotations.DisplayColumnAttribute
The display column attribute.

Community Additions

ADD
Show: