Condividi tramite


ModelMetadataProvider.GetMetadataForProperty Metodo

Definizione

Restituisce i metadati per la proprietà specificata.

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

Parametri

modelAccessor
Func<Object>

Funzione di accesso del modello.

containerType
Type

Tipo di contenitore.

propertyName
String

Nome della proprietà.

Restituisce

Metadati della proprietà specificata.

Si applica a