Compartir a través de


ModelMetadataProvider.GetMetadataForProperty(PropertyInfo, Type) Método

Definición

Proporciona metadatos que describen una propiedad.

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

Parámetros

propertyInfo
PropertyInfo

PropertyInfo.

modelType
Type

Tipo de modelo real.

Devoluciones

Instancia ModelMetadata de que describe .propertyInfo

Se aplica a