ResourceExpressionBuilder.EvaluateExpression 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 a value from a resource file.
public:
override System::Object ^ EvaluateExpression(System::Object ^ target, System::Web::UI::BoundPropertyEntry ^ entry, System::Object ^ parsedData, System::Web::Compilation::ExpressionBuilderContext ^ context);
public override object EvaluateExpression (object target, System.Web.UI.BoundPropertyEntry entry, object parsedData, System.Web.Compilation.ExpressionBuilderContext context);
override this.EvaluateExpression : obj * System.Web.UI.BoundPropertyEntry * obj * System.Web.Compilation.ExpressionBuilderContext -> obj
Public Overrides Function EvaluateExpression (target As Object, entry As BoundPropertyEntry, parsedData As Object, context As ExpressionBuilderContext) As Object
Parameters
- target
- Object
The object containing the expression.
- entry
- BoundPropertyEntry
The object that represents information about the property bound to by the expression.
- parsedData
- Object
The object containing parsed data as returned by the ParseExpression method.
- context
- ExpressionBuilderContext
Contextual information for the evaluation of the expression.
Returns
An Object associated with the parsed expression. The parsed expression contains the class name and resource key.
Remarks
This method is called when an expression of the form <%$ Resources: someResourceKey %>
is encountered in a page that uses the no-compile feature. It retrieves the appropriate value from a key/value pair in a resource file.