AssociatedMetadataProvider.GetMetadataForProperty メソッド

定義

オーバーロード

GetMetadataForProperty(Func<Object>, Type, PropertyDescriptor)

コンテナーの型およびプロパティ記述子を使用して指定したプロパティのメタデータを返します。

GetMetadataForProperty(Func<Object>, Type, String)

コンテナーの型およびプロパティ名を使用して指定したプロパティのメタデータを返します。

GetMetadataForProperty(Func<Object>, Type, PropertyDescriptor)

コンテナーの型およびプロパティ記述子を使用して指定したプロパティのメタデータを返します。

protected virtual System.Web.Mvc.ModelMetadata GetMetadataForProperty (Func<object> modelAccessor, Type containerType, System.ComponentModel.PropertyDescriptor propertyDescriptor);
override this.GetMetadataForProperty : Func<obj> * Type * System.ComponentModel.PropertyDescriptor -> System.Web.Mvc.ModelMetadata
Protected Overridable Function GetMetadataForProperty (modelAccessor As Func(Of Object), containerType As Type, propertyDescriptor As PropertyDescriptor) As ModelMetadata

パラメーター

modelAccessor
Func<Object>

モデル アクセサー。

containerType
Type

コンテナーの種類。

propertyDescriptor
PropertyDescriptor

プロパティ記述子。

戻り値

コンテナーの型およびプロパティ記述子を使用して指定したプロパティのメタデータ。

適用対象

GetMetadataForProperty(Func<Object>, Type, String)

コンテナーの型およびプロパティ名を使用して指定したプロパティのメタデータを返します。

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

パラメーター

modelAccessor
Func<Object>

モデル アクセサー。

containerType
Type

コンテナーの種類。

propertyName
String

プロパティの名前。

戻り値

コンテナーの型およびプロパティ名を使用して指定したプロパティのメタデータ。

適用対象