Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

DataAnnotationsModelMetadata Constructor (DataAnnotationsModelMetadataProvider, Type, Func<Object>, Type, String, DisplayColumnAttribute)

 

Initializes a new instance of the DataAnnotationsModelMetadataProvider class.

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

No code example is currently available or this language may not be supported.

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<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.

Return to top
Show:
© 2015 Microsoft