DataAnnotationsModelMetadata Constructor

Definition

Initializes a new instance of the DataAnnotationsModelMetadataProvider class.

public DataAnnotationsModelMetadata (System.Web.Mvc.DataAnnotationsModelMetadataProvider provider, Type containerType, Func<object> modelAccessor, Type modelType, string propertyName, System.ComponentModel.DataAnnotations.DisplayColumnAttribute displayColumnAttribute);
new System.Web.Mvc.DataAnnotationsModelMetadata : System.Web.Mvc.DataAnnotationsModelMetadataProvider * Type * Func<obj> * Type * string * System.ComponentModel.DataAnnotations.DisplayColumnAttribute -> System.Web.Mvc.DataAnnotationsModelMetadata
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
DataAnnotationsModelMetadataProvider

The data-annotations model metadata provider.

containerType
Type

The type of the container.

modelAccessor
Func<Object>

The model accessor.

modelType
Type

The type of the model.

propertyName
String

The name of the property.

displayColumnAttribute
DisplayColumnAttribute

The display column attribute.

Applies to