Share via


ModelMetadataProvider Class

Definition

A provider that can supply instances of ModelMetadata.

public ref class ModelMetadataProvider abstract : Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider
public abstract class ModelMetadataProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider
type ModelMetadataProvider = class
    interface IModelMetadataProvider
Public MustInherit Class ModelMetadataProvider
Implements IModelMetadataProvider
Inheritance
ModelMetadataProvider
Derived
Implements

Constructors

ModelMetadataProvider()

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