DefaultModelMetadataProvider.GetMetadataForProperty Metoda

Definice

Poskytuje metadata popisující vlastnost.

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

Parametry

propertyInfo
PropertyInfo

Hodnota PropertyInfo

modelType
Type

Skutečný typ modelu.

Návraty

Instance ModelMetadata popisující .propertyInfo

Platí pro