ViewDataEvaluator.Eval 方法

定义

重载

Eval(ViewDataDictionary, String)

获取ViewDataInfo给定 viewData中命名expression的 。

Eval(Object, String)

获取ViewDataInfo给定 indexableObject中命名expression的 。

Eval(ViewDataDictionary, String)

Source:
ViewDataEvaluator.cs
Source:
ViewDataEvaluator.cs
Source:
ViewDataEvaluator.cs

获取ViewDataInfo给定 viewData中命名expression的 。

public:
 static Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataInfo ^ Eval(Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataDictionary ^ viewData, System::String ^ expression);
public static Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo Eval (Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary viewData, string expression);
static member Eval : Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary * string -> Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo
Public Shared Function Eval (viewData As ViewDataDictionary, expression As String) As ViewDataInfo

参数

viewData
ViewDataDictionary

ViewDataDictionary可能包含 expression 值的 。

expression
String

表达式名称,相对于 viewData.Model

返回

ViewDataInfo在给定 viewData中命名expression的 。

适用于

Eval(Object, String)

Source:
ViewDataEvaluator.cs
Source:
ViewDataEvaluator.cs
Source:
ViewDataEvaluator.cs

获取ViewDataInfo给定 indexableObject中命名expression的 。

public:
 static Microsoft::AspNetCore::Mvc::ViewFeatures::ViewDataInfo ^ Eval(System::Object ^ indexableObject, System::String ^ expression);
public static Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo Eval (object indexableObject, string expression);
static member Eval : obj * string -> Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataInfo
Public Shared Function Eval (indexableObject As Object, expression As String) As ViewDataInfo

参数

indexableObject
Object

Object可能包含 expression 值的 。

expression
String

表达式名称,相对于 indexableObject

返回

ViewDataInfo在给定 indexableObject中命名expression的 。

适用于