IModelMetadataProvider.GetMetadataForType(Type) Method

Definition

Supplies metadata describing a Type.

public:
 Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ GetMetadataForType(Type ^ modelType);
public Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata GetMetadataForType (Type modelType);
abstract member GetMetadataForType : Type -> Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata
Public Function GetMetadataForType (modelType As Type) As ModelMetadata

Parameters

modelType
Type

The Type.

Returns

A ModelMetadata instance describing the Type.

Applies to