ResourceExpressionBuilder.ParseExpression Method

Definition

Returns an object that represents the parsed expression.

Overloads

ParseExpression(String)

Returns an object that represents the parsed expression.

ParseExpression(String, Type, ExpressionBuilderContext)

Returns an object that represents the parsed expression.

ParseExpression(String)

Returns an object that represents the parsed expression.

public static System.Web.Compilation.ResourceExpressionFields ParseExpression(string expression);

Parameters

expression
String

The expression value to be parsed.

Returns

The ResourceExpressionFields for the expression.

Remarks

This method parses the expression and returns a ClassKey and a ResourceKey property value in the returned ResourceExpressionFields object, if these properties are provided in the expression.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

ParseExpression(String, Type, ExpressionBuilderContext)

Returns an object that represents the parsed expression.

public override object ParseExpression(string expression, Type propertyType, System.Web.Compilation.ExpressionBuilderContext context);

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 that represents the parsed expression.

Exceptions

The resource expression cannot be found or is invalid.

Remarks

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.

See also

Applies to

.NET Framework 4.8.1 and other versions
Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1