Share via


DefaultModelMetadataProvider Class

Definition

A default implementation of IModelMetadataProvider based on reflection.

public ref class DefaultModelMetadataProvider : Microsoft::AspNetCore::Mvc::ModelBinding::IModelMetadataProvider
public ref class DefaultModelMetadataProvider : Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadataProvider
public class DefaultModelMetadataProvider : Microsoft.AspNetCore.Mvc.ModelBinding.IModelMetadataProvider
public class DefaultModelMetadataProvider : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadataProvider
type DefaultModelMetadataProvider = class
    interface IModelMetadataProvider
type DefaultModelMetadataProvider = class
    inherit ModelMetadataProvider
Public Class DefaultModelMetadataProvider
Implements IModelMetadataProvider
Public Class DefaultModelMetadataProvider
Inherits ModelMetadataProvider
Inheritance
DefaultModelMetadataProvider
Inheritance
DefaultModelMetadataProvider
Derived
Implements

Constructors

DefaultModelMetadataProvider(ICompositeMetadataDetailsProvider, IOptions<MvcOptions>)

Creates a new DefaultModelMetadataProvider.

DefaultModelMetadataProvider(ICompositeMetadataDetailsProvider)

Creates a new DefaultModelMetadataProvider.

Properties

DetailsProvider

Gets the ICompositeMetadataDetailsProvider.

ModelBindingMessageProvider

Gets the DefaultModelBindingMessageProvider.

Methods

CreateModelMetadata(DefaultMetadataDetails)

Creates a new ModelMetadata from a DefaultMetadataDetails.

CreateParameterDetails(ModelMetadataIdentity)

Creates the DefaultMetadataDetails entry for a parameter Type.

CreatePropertyDetails(ModelMetadataIdentity)

Creates the DefaultMetadataDetails entries for the properties of a model Type.

CreateTypeDetails(ModelMetadataIdentity)

Creates the DefaultMetadataDetails entry for a model Type.

GetMetadataForConstructor(ConstructorInfo, Type)

Supplies metadata describing a constructor.

GetMetadataForConstructor(ConstructorInfo, Type)

Supplies metadata describing a constructor.

(Inherited from ModelMetadataProvider)
GetMetadataForParameter(ParameterInfo, Type)

Supplies metadata describing a parameter.

GetMetadataForParameter(ParameterInfo, Type)

Supplies metadata describing a parameter.

(Inherited from ModelMetadataProvider)
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.

GetMetadataForProperty(PropertyInfo, Type)

Supplies metadata describing a property.

(Inherited from ModelMetadataProvider)
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