ResourceExpressionBuilder::ParseExpression Method (String^, Type^, ExpressionBuilderContext^)

 

Returns an object that represents the parsed expression.

Namespace:   System.Web.Compilation
Assembly:  System.Web (in System.Web.dll)

public:
virtual Object^ ParseExpression(
	String^ expression,
	Type^ propertyType,
	ExpressionBuilderContext^ context
) override

Parameters

expression
Type: System::String^

The value of the declarative expression.

propertyType
Type: System::Type^

The type of the property bound to by the expression.

context
Type: System.Web.Compilation::ExpressionBuilderContext^

Contextual information for the evaluation of the expression.

Return Value

Type: System::Object^

An Object that represents the parsed expression.

Exception Condition
HttpException

The resource expression cannot be found or is invalid.

The returned Object is of type ResourceExpressionFields. This method parses the expression and returns a ClassKey and a ResourceKey property value in the returned ResourceExpressionFields object, if those properties are provided in the expression.

.NET Framework
Available since 2.0
Return to top
Show: