ResourceExpressionBuilder.ParseExpression Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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(System::String ^ expression);
public static System.Web.Compilation.ResourceExpressionFields ParseExpression (string expression);
static member ParseExpression : string -> System.Web.Compilation.ResourceExpressionFields
Public Shared Function ParseExpression (expression As String) As ResourceExpressionFields
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
ParseExpression(String, Type, ExpressionBuilderContext)
Returns an object that represents the parsed expression.
public:
override System::Object ^ ParseExpression(System::String ^ expression, Type ^ propertyType, System::Web::Compilation::ExpressionBuilderContext ^ context);
public override object ParseExpression (string expression, Type propertyType, System.Web.Compilation.ExpressionBuilderContext context);
override this.ParseExpression : string * Type * System.Web.Compilation.ExpressionBuilderContext -> obj
Public Overrides 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 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.