System.Web.Compilation.ExpressionBuilder.EvaluateExpression Method

When overridden in a derived class, returns an object that represents an evaluated expression.

Syntax

public virtual object EvaluateExpression (object target, System.Web.UI.BoundPropertyEntry entry, object parsedData, ExpressionBuilderContext context)

Parameters

target
The object containing the expression.
entry
The object that represents information about the property bound to by the expression.
parsedData
The object containing parsed data as returned by ExpressionBuilder.ParseExpression(string, Type, ExpressionBuilderContext).
context
Contextual information for the evaluation of the expression.

Returns

An object that represents the evaluated expression; otherwise, null if the inheritor does not implement ExpressionBuilder.EvaluateExpression(object, System.Web.UI.BoundPropertyEntry, object, ExpressionBuilderContext).

Remarks

If you want your System.Web.Compilation.ExpressionBuilder object to be active on a page that supports the no-compile feature, you can override the ExpressionBuilder.EvaluateExpression(object, System.Web.UI.BoundPropertyEntry, object, ExpressionBuilderContext) method and the ExpressionBuilder.SupportsEvaluate property. The ExpressionBuilder.EvaluateExpression(object, System.Web.UI.BoundPropertyEntry, object, ExpressionBuilderContext) method should return the evaluation of the current expression.

Requirements

Namespace: System.Web.Compilation
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0