Share via


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

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.

See Also

Reference

ViewDataDictionary Class

Eval Overload

System.Web.Mvc Namespace