ModelExplorer Class

Definition

Associates a model object with it's corresponding ModelMetadata.

C#
public class ModelExplorer
Inheritance
ModelExplorer

Constructors

Properties

Container

Gets the container ModelExplorer.

Metadata

Gets the ModelMetadata.

Model

Gets the model object.

ModelType
Properties

Gets the properties.

Methods

GetExplorerForExpression(ModelMetadata, Func<Object,Object>)

Gets a ModelExplorer for the provided model value and model Type.

GetExplorerForExpression(ModelMetadata, Object)

Gets a ModelExplorer for the provided model value and model Type.

GetExplorerForExpression(Type, Func<Object,Object>)

Gets a ModelExplorer for the provided model value and model Type.

GetExplorerForExpression(Type, Object)

Gets a ModelExplorer for the provided model value and model Type.

GetExplorerForModel(Object)

Gets a ModelExplorer for the given model value.

GetExplorerForProperty(String, Func<Object,Object>)

Gets a ModelExplorer for the property with given name, or null if the property cannot be found.

GetExplorerForProperty(String, Object)

Gets a ModelExplorer for the property with given name, or null if the property cannot be found.

GetExplorerForProperty(String)

Gets a ModelExplorer for the property with given name, or null if the property cannot be found.

Extension Methods

GetSimpleDisplayText(ModelExplorer)

Gets a simple display string for the Model property of modelExplorer.

Applies to

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