ModelMetadataProvider Class

Definition

A provider that can supply instances of ModelMetadata.

C#
public abstract class ModelMetadataProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider
Inheritance
ModelMetadataProvider
Derived
Implements

Constructors

Methods

GetMetadataForConstructor(ConstructorInfo, Type)

Supplies metadata describing a constructor.

GetMetadataForParameter(ParameterInfo, Type)

Supplies metadata describing a parameter.

GetMetadataForParameter(ParameterInfo)

Supplies metadata describing a parameter.

GetMetadataForProperties(Type)

Supplies metadata describing the properties of a Type.

GetMetadataForProperty(PropertyInfo, Type)

Supplies metadata describing a property.

GetMetadataForType(Type)

Supplies metadata describing a Type.

Extension Methods

GetMetadataForProperty(IModelMetadataProvider, Type, String)

Gets a ModelMetadata for property identified by the provided containerType and propertyName.

GetModelExplorerForType(IModelMetadataProvider, Type, Object)

Gets a ModelExplorer for the provided modelType and model.

Applies to

Product Versions
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0