ערוך

שתף באמצעות


DataAnnotationsModelMetadata Constructor

Definition

Initializes a new instance of the DataAnnotationsModelMetadata class.

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

The provider object.

containerType
Type

The type of the container, or null if there is no container.

modelAccessor
Func<Object>

The model accessor.

modelType
Type

The type of the model.

propertyName
String

The name of the property, or null if the model is not a property.

displayColumnAttribute
DisplayColumnAttribute

The display column attribute.

Applies to