DataAnnotationsModelMetadata コンストラクター

定義

DataAnnotationsModelMetadata クラスの新しいインスタンスを初期化します。

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)

パラメーター

provider
DataAnnotationsModelMetadataProvider

プロバイダー オブジェクト。

containerType
Type

コンテナーの種類。コンテナーがない場合は null

modelAccessor
Func<Object>

モデル アクセサー。

modelType
Type

モデルの型。

propertyName
String

プロパティの名前。モデルがプロパティでない場合は null

displayColumnAttribute
DisplayColumnAttribute

列の表示属性。

適用対象