ModelExplorer.GetExplorerForProperty 方法

定义

重载

GetExplorerForProperty(String)

ModelExplorer获取具有给定 name的 属性的 ;null如果找不到属性,则获取 。

GetExplorerForProperty(String, Func<Object,Object>)

ModelExplorer获取具有给定 name的 属性的 ;null如果找不到属性,则获取 。

GetExplorerForProperty(String, Object)

ModelExplorer获取具有给定 name的 属性的 ;null如果找不到属性,则获取 。

GetExplorerForProperty(String)

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

ModelExplorer获取具有给定 name的 属性的 ;null如果找不到属性,则获取 。

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

参数

name
String

属性名称。

返回

一个 ModelExplorernull

适用于

GetExplorerForProperty(String, Func<Object,Object>)

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

ModelExplorer获取具有给定 name的 属性的 ;null如果找不到属性,则获取 。

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

参数

name
String

属性名称。

modelAccessor
Func<Object,Object>

模型值的访问器。

返回

一个 ModelExplorernull

注解

由于这会创建具有特定模型访问器函数的模型资源管理器,因此不会缓存结果。

适用于

GetExplorerForProperty(String, Object)

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

ModelExplorer获取具有给定 name的 属性的 ;null如果找不到属性,则获取 。

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

参数

name
String

属性名称。

model
Object

模型值。

返回

一个 ModelExplorernull

注解

由于这会创建具有特定模型值的模型资源管理器,因此不会缓存结果。

适用于