ModelExplorer.GetExplorerForExpression Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
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. |
GetExplorerForExpression(ModelMetadata, Func<Object,Object>)
- Source:
- ModelExplorer.cs
- Source:
- ModelExplorer.cs
- Source:
- ModelExplorer.cs
Gets a ModelExplorer for the provided model value and model Type.
public:
Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ GetExplorerForExpression(Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata, Func<System::Object ^, System::Object ^> ^ modelAccessor);
public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetExplorerForExpression (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, Func<object,object> modelAccessor);
member this.GetExplorerForExpression : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * Func<obj, obj> -> Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer
Public Function GetExplorerForExpression (metadata As ModelMetadata, modelAccessor As Func(Of Object, Object)) As ModelExplorer
Parameters
- metadata
- ModelMetadata
The ModelMetadata associated with the model.
Returns
Remarks
A ModelExplorer created by GetExplorerForExpression(ModelMetadata, Func<Object,Object>) represents the result of executing an arbitrary expression against the model contained in the current ModelExplorer instance.
The returned ModelExplorer will have the current instance set as its Container.
Applies to
GetExplorerForExpression(ModelMetadata, Object)
- Source:
- ModelExplorer.cs
- Source:
- ModelExplorer.cs
- Source:
- ModelExplorer.cs
Gets a ModelExplorer for the provided model value and model Type.
public:
Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ GetExplorerForExpression(Microsoft::AspNetCore::Mvc::ModelBinding::ModelMetadata ^ metadata, System::Object ^ model);
public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetExplorerForExpression (Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata metadata, object model);
member this.GetExplorerForExpression : Microsoft.AspNetCore.Mvc.ModelBinding.ModelMetadata * obj -> Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer
Public Function GetExplorerForExpression (metadata As ModelMetadata, model As Object) As ModelExplorer
Parameters
- metadata
- ModelMetadata
The ModelMetadata associated with the model.
- model
- Object
The model value.
Returns
Remarks
A ModelExplorer created by GetExplorerForExpression(ModelMetadata, Object) represents the result of executing an arbitrary expression against the model contained in the current ModelExplorer instance.
The returned ModelExplorer will have the current instance set as its Container.
Applies to
GetExplorerForExpression(Type, Func<Object,Object>)
- Source:
- ModelExplorer.cs
- Source:
- ModelExplorer.cs
- Source:
- ModelExplorer.cs
Gets a ModelExplorer for the provided model value and model Type.
public:
Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ GetExplorerForExpression(Type ^ modelType, Func<System::Object ^, System::Object ^> ^ modelAccessor);
public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetExplorerForExpression (Type modelType, Func<object,object> modelAccessor);
member this.GetExplorerForExpression : Type * Func<obj, obj> -> Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer
Public Function GetExplorerForExpression (modelType As Type, modelAccessor As Func(Of Object, Object)) As ModelExplorer
Parameters
Returns
Remarks
A ModelExplorer created by GetExplorerForExpression(Type, Func<Object,Object>) represents the result of executing an arbitrary expression against the model contained in the current ModelExplorer instance.
The returned ModelExplorer will have the current instance set as its Container.
Applies to
GetExplorerForExpression(Type, Object)
- Source:
- ModelExplorer.cs
- Source:
- ModelExplorer.cs
- Source:
- ModelExplorer.cs
Gets a ModelExplorer for the provided model value and model Type.
public:
Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ GetExplorerForExpression(Type ^ modelType, System::Object ^ model);
public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetExplorerForExpression (Type modelType, object model);
member this.GetExplorerForExpression : Type * obj -> Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer
Public Function GetExplorerForExpression (modelType As Type, model As Object) As ModelExplorer
Parameters
- model
- Object
The model value.
Returns
Remarks
A ModelExplorer created by GetExplorerForExpression(Type, Object) represents the result of executing an arbitrary expression against the model contained in the current ModelExplorer instance.
The returned ModelExplorer will have the current instance set as its Container.