ModelMetadataProvider.GetMetadataForProperty メソッド

定義

指定したプロパティのメタデータを取得します。

public abstract System.Web.Mvc.ModelMetadata GetMetadataForProperty (Func<object> modelAccessor, Type containerType, string propertyName);
abstract member GetMetadataForProperty : Func<obj> * Type * string -> System.Web.Mvc.ModelMetadata
Public MustOverride Function GetMetadataForProperty (modelAccessor As Func(Of Object), containerType As Type, propertyName As String) As ModelMetadata

パラメーター

modelAccessor
Func<Object>

モデル アクセサー。

containerType
Type

コンテナーの種類。

propertyName
String

メタデータ モデルを取得する対象のプロパティ。

戻り値

ModelMetadataプロパティの オブジェクト。

適用対象