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

.NET Framework (current version)
 

Initializes a new instance of the DataAnnotationsModelMetadata class.

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

new : 
        provider:DataAnnotationsModelMetadataProvider *
        containerType:Type *
        modelAccessor:Func<Object> *
        modelType:Type *
        propertyName:string *
        displayColumnAttribute:DisplayColumnAttribute -> DataAnnotationsModelMetadata

Parameters

provider
Type: System.Web.ModelBinding.DataAnnotationsModelMetadataProvider

The provider object.

containerType
Type: System.Type

The type of the container, or null if there is no 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, or null if the model is not a property.

displayColumnAttribute
Type: System.ComponentModel.DataAnnotations.DisplayColumnAttribute

The display column attribute.

.NET Framework
Available since 4.5
Return to top
Show: