DataAnnotationsModelMetadata Constructor

Definitie

Initialiseert een nieuw exemplaar van de DataAnnotationsModelMetadata klasse.

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

Het providerobject.

containerType
Type

Het type container of null als er geen container is.

modelAccessor
Func<Object>

De modeltoegangsfunctie.

modelType
Type

Het type model.

propertyName
String

De naam van de eigenschap of null als het model geen eigenschap is.

displayColumnAttribute
DisplayColumnAttribute

Het kenmerk van de weergavekolom.

Van toepassing op