ViewDataDictionary.Eval Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Eval(String) |
Gets value of named |
Eval(String, String) |
Gets value of named |
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.
- format
- String
The format string (see https://msdn.microsoft.com/en-us/library/txafckwd.aspx).
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.