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>)

Source:
ModelExplorer.cs
Source:
ModelExplorer.cs
Source:
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)

Source:
ModelExplorer.cs
Source:
ModelExplorer.cs
Source:
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>)

Source:
ModelExplorer.cs
Source:
ModelExplorer.cs
Source:
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)

Source:
ModelExplorer.cs
Source:
ModelExplorer.cs
Source:
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

适用于