Share via


ModelExplorer.GetExplorerForProperty Method

Definition

Overloads

GetExplorerForProperty(String)

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

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)

Source:
ModelExplorer.cs
Source:
ModelExplorer.cs
Source:
ModelExplorer.cs

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

public:
 Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ GetExplorerForProperty(System::String ^ name);
public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetExplorerForProperty (string name);
member this.GetExplorerForProperty : string -> Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer
Public Function GetExplorerForProperty (name As String) As ModelExplorer

Parameters

name
String

The property name.

Returns

A ModelExplorer, or null.

Applies to

GetExplorerForProperty(String, Func<Object,Object>)

Source:
ModelExplorer.cs
Source:
ModelExplorer.cs
Source:
ModelExplorer.cs

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

public:
 Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ GetExplorerForProperty(System::String ^ name, Func<System::Object ^, System::Object ^> ^ modelAccessor);
public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetExplorerForProperty (string name, Func<object,object> modelAccessor);
member this.GetExplorerForProperty : string * Func<obj, obj> -> Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer
Public Function GetExplorerForProperty (name As String, modelAccessor As Func(Of Object, Object)) As ModelExplorer

Parameters

name
String

The property name.

modelAccessor
Func<Object,Object>

An accessor for the model value.

Returns

A ModelExplorer, or null.

Remarks

As this creates a model explorer with a specific model accessor function, the result is not cached.

Applies to

GetExplorerForProperty(String, Object)

Source:
ModelExplorer.cs
Source:
ModelExplorer.cs
Source:
ModelExplorer.cs

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

public:
 Microsoft::AspNetCore::Mvc::ViewFeatures::ModelExplorer ^ GetExplorerForProperty(System::String ^ name, System::Object ^ model);
public Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer GetExplorerForProperty (string name, object model);
member this.GetExplorerForProperty : string * obj -> Microsoft.AspNetCore.Mvc.ViewFeatures.ModelExplorer
Public Function GetExplorerForProperty (name As String, model As Object) As ModelExplorer

Parameters

name
String

The property name.

model
Object

The model value.

Returns

A ModelExplorer, or null.

Remarks

As this creates a model explorer with a specific model value, the result is not cached.

Applies to