Edit

Share via


ExpressionBuilder.ParseExpression Method

Definition

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

public:
 virtual System::Object ^ ParseExpression(System::String ^ expression, Type ^ propertyType, System::Web::Compilation::ExpressionBuilderContext ^ context);
public virtual object ParseExpression (string expression, Type propertyType, System.Web.Compilation.ExpressionBuilderContext context);
abstract member ParseExpression : string * Type * System.Web.Compilation.ExpressionBuilderContext -> obj
override this.ParseExpression : string * Type * System.Web.Compilation.ExpressionBuilderContext -> obj
Public Overridable Function ParseExpression (expression As String, propertyType As Type, context As ExpressionBuilderContext) As Object

Parameters

expression
String

The value of the declarative expression.

propertyType
Type

The type of the property bound to by the expression.

context
ExpressionBuilderContext

Contextual information for the evaluation of the expression.

Returns

An Object containing the parsed representation of the expression; otherwise, null if 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 GetCodeExpression or EvaluateExpression method.

Applies to