System.Web.Compilation.ExpressionBuilder.ParseExpression Method

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

Syntax

public virtual object ParseExpression (string expression, Type propertyType, ExpressionBuilderContext context)

Parameters

expression
The value of the declarative expression.
propertyType
The type of the property bound to by the expression.
context
Contextual information for the evaluation of the expression.

Returns

An object containing the parsed representation of the expression; otherwise, null if ExpressionBuilder.ParseExpression(string, Type, ExpressionBuilderContext) is not implemented.

Remarks

When overridden in a derived class, this method parses the expression and returns it as an object that can be used as the parsedData parameter in a ExpressionBuilder.GetCodeExpression(System.Web.UI.BoundPropertyEntry, object, ExpressionBuilderContext) or ExpressionBuilder.EvaluateExpression(object, System.Web.UI.BoundPropertyEntry, object, ExpressionBuilderContext) method.

Requirements

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