AssociatedMetadataProvider.GetMetadataForProperty メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
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
パラメーター
- 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
パラメーター
- containerType
- Type
コンテナーの種類。
- propertyName
- String
プロパティの名前。
戻り値
コンテナーの型およびプロパティ名を使用して指定したプロパティのメタデータ。