ModelMetadataProvider.GetMetadataForProperty(PropertyInfo, Type) Metodo

Definizione

Fornisce i metadati che descrivono una proprietà.

public:
 virtual Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ GetMetadataForProperty(System::Reflection::PropertyInfo ^ propertyInfo, Type ^ modelType);
public virtual Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForProperty (System.Reflection.PropertyInfo propertyInfo, Type modelType);
abstract member GetMetadataForProperty : System.Reflection.PropertyInfo * Type -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata
override this.GetMetadataForProperty : System.Reflection.PropertyInfo * Type -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata
Public Overridable Function GetMetadataForProperty (propertyInfo As PropertyInfo, modelType As Type) As ModelMetadata

Parametri

propertyInfo
PropertyInfo

Oggetto PropertyInfo.

modelType
Type

Tipo di modello effettivo.

Restituisce

ModelMetadata Istanza di che descrive .propertyInfo

Si applica a