Dela via


ViewDataDictionary.Eval Method

Definition

Overloads

Eval(String)

Gets value of named expression in this ViewDataDictionary.

Eval(String, String)

Gets value of named expression in this ViewDataDictionary, formatted using given format.

Eval(String)

Source:
ViewDataDictionary.cs
Source:
ViewDataDictionary.cs
Source:
ViewDataDictionary.cs

Gets value of named expression in this ViewDataDictionary.

public:
 System::Object ^ Eval(System::String ^ expression);
public object Eval (string expression);
public object? Eval (string? expression);
member this.Eval : string -> obj
Public Function Eval (expression As String) As Object

Parameters

expression
String

Expression name, relative to the current model.

Returns

Value of named expression in this ViewDataDictionary.

Remarks

Looks up expression in the dictionary first. Falls back to evaluating it against Model.

Applies to

Eval(String, String)

Source:
ViewDataDictionary.cs
Source:
ViewDataDictionary.cs
Source:
ViewDataDictionary.cs

Gets value of named expression in this ViewDataDictionary, formatted using given format.

public:
 System::String ^ Eval(System::String ^ expression, System::String ^ format);
public string Eval (string expression, string format);
public string? Eval (string? expression, string? format);
member this.Eval : string * string -> string
Public Function Eval (expression As String, format As String) As String

Parameters

expression
String

Expression name, relative to the current model.

Returns

Value of named expression in this ViewDataDictionary, formatted using given format.

Remarks

Looks up expression in the dictionary first. Falls back to evaluating it against Model.

Applies to