DefaultModelMetadataProvider.GetMetadataForProperty Method

Definition

Supplies metadata describing a property.

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

Parameters

propertyInfo
PropertyInfo

The PropertyInfo.

modelType
Type

The actual model type.

Returns

A ModelMetadata instance describing the propertyInfo.

Applies to