DataAnnotationsModelMetadata Constructor (DataAnnotationsModelMetadataProvider, Type, Func(Of Object), Type, String, DisplayColumnAttribute)
.NET Framework (current version)
Initializes a new instance of the DataAnnotationsModelMetadata class.
Assembly: System.Web (in System.Web.dll)
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.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(Of 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
Available since 4.5
Show: