ViewDataDictionary.Eval Method (String)
Evaluates the specified expression.
Namespace: System.Web.Mvc
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Syntax
'Declaration
Public Function Eval ( _
expression As String _
) As Object
public Object Eval(
string expression
)
public:
Object^ Eval(
String^ expression
)
Parameters
- expression
Type: System.String
The expression.
Return Value
Type: System.Object
The results of the evaluation.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The expression parameter is null reference (Nothing in Visual Basic) or empty. |