共用方式為


ModelExplorer.GetExplorerForExpression 方法

定義

多載

GetExplorerForExpression(ModelMetadata, Func<Object,Object>)

ModelExplorer取得所提供模型值和模型的 Type

GetExplorerForExpression(ModelMetadata, Object)

ModelExplorer取得所提供模型值和模型的 Type

GetExplorerForExpression(Type, Func<Object,Object>)

ModelExplorer取得所提供模型值和模型的 Type

GetExplorerForExpression(Type, Object)

ModelExplorer取得所提供模型值和模型的 Type

GetExplorerForExpression(ModelMetadata, Func<Object,Object>)

來源:
ModelExplorer.cs
來源:
ModelExplorer.cs
來源:
ModelExplorer.cs

ModelExplorer取得所提供模型值和模型的 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

參數

metadata
ModelMetadata

ModelMetadata 模型相關聯的 。

modelAccessor
Func<Object,Object>

模型存取子函式。

傳回

ModelExplorer

備註

ModelExplorer 表示 GetExplorerForExpression(ModelMetadata, Func<Object,Object>) 針對目前 ModelExplorer 實例中包含的模型執行任意運算式的結果。

傳回的 ModelExplorer 將目前的 實例設定為 。 Container

適用於

GetExplorerForExpression(ModelMetadata, Object)

來源:
ModelExplorer.cs
來源:
ModelExplorer.cs
來源:
ModelExplorer.cs

ModelExplorer取得所提供模型值和模型的 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

參數

metadata
ModelMetadata

ModelMetadata 模型相關聯的 。

model
Object

模型值。

傳回

ModelExplorer

備註

ModelExplorer 表示 GetExplorerForExpression(ModelMetadata, Object) 針對目前 ModelExplorer 實例中包含的模型執行任意運算式的結果。

傳回的 ModelExplorer 將目前的 實例設定為 。 Container

適用於

GetExplorerForExpression(Type, Func<Object,Object>)

來源:
ModelExplorer.cs
來源:
ModelExplorer.cs
來源:
ModelExplorer.cs

ModelExplorer取得所提供模型值和模型的 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

參數

modelType
Type

模型 Type

modelAccessor
Func<Object,Object>

模型存取子函式。

傳回

ModelExplorer

備註

ModelExplorer 表示 GetExplorerForExpression(Type, Func<Object,Object>) 針對目前 ModelExplorer 實例中包含的模型執行任意運算式的結果。

傳回的 ModelExplorer 將目前的 實例設定為 。 Container

適用於

GetExplorerForExpression(Type, Object)

來源:
ModelExplorer.cs
來源:
ModelExplorer.cs
來源:
ModelExplorer.cs

ModelExplorer取得所提供模型值和模型的 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

參數

modelType
Type

模型 Type

model
Object

模型值。

傳回

ModelExplorer

備註

ModelExplorer 表示 GetExplorerForExpression(Type, Object) 針對目前 ModelExplorer 實例中包含的模型執行任意運算式的結果。

傳回的 ModelExplorer 將目前的 實例設定為 。 Container

適用於