語言

ModelMetadataProvider.GetMetadataForProperty 方法

定義

回傳指定屬性的元資料。

public:
 abstract System::Web::ModelBinding::ModelMetadata ^ GetMetadataForProperty(Func<System::Object ^> ^ modelAccessor, Type ^ containerType, System::String ^ propertyName);
public abstract System.Web.ModelBinding.ModelMetadata GetMetadataForProperty(Func<object> modelAccessor, Type containerType, string propertyName);
abstract member GetMetadataForProperty : Func<obj> * Type * string -> System.Web.ModelBinding.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

屬性的名稱。

傳回

指定屬性的元資料。

適用於