ViewDataEvaluator.Eval 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
Eval(ViewDataDictionary, String) |
获取ViewDataInfo给定 |
Eval(Object, String) |
获取ViewDataInfo给定 |
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
参数
- expression
- String
表达式名称,相对于 indexableObject
。
返回
ViewDataInfo在给定 indexableObject
中命名expression
的 。