Share via


ViewDataEvaluator.Eval Method

Definition

Overloads

Eval(ViewDataDictionary, String)

Gets ViewDataInfo for named expression in given viewData.

Eval(Object, String)

Gets ViewDataInfo for named expression in given indexableObject.

Eval(ViewDataDictionary, String)

Source:
ViewDataEvaluator.cs
Source:
ViewDataEvaluator.cs

Gets ViewDataInfo for named expression in given viewData.

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

Parameters

viewData
ViewDataDictionary

The ViewDataDictionary that may contain the expression value.

expression
String

Expression name, relative to viewData.Model.

Returns

ViewDataInfo for named expression in given viewData.

Applies to

Eval(Object, String)

Source:
ViewDataEvaluator.cs
Source:
ViewDataEvaluator.cs

Gets ViewDataInfo for named expression in given indexableObject.

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

Parameters

indexableObject
Object

The Object that may contain the expression value.

expression
String

Expression name, relative to indexableObject.

Returns

ViewDataInfo for named expression in given indexableObject.

Applies to