RouteValueExpressionEditor.EvaluateExpression Method

Definition

Evaluates a RouteValue expression and provides the design-time value.

public:
 override System::Object ^ EvaluateExpression(System::String ^ expression, System::Object ^ parseTimeData, Type ^ propertyType, IServiceProvider ^ serviceProvider);
public override object EvaluateExpression (string expression, object parseTimeData, Type propertyType, IServiceProvider serviceProvider);
override this.EvaluateExpression : string * obj * Type * IServiceProvider -> obj
Public Overrides Function EvaluateExpression (expression As String, parseTimeData As Object, propertyType As Type, serviceProvider As IServiceProvider) As Object

Parameters

expression
String

A RouteValue expression to evaluate. The expression does not include the RouteValue expression prefix.

parseTimeData
Object

An object that contains additional parsing information that is used to evaluate the expression.

propertyType
Type

The type of the control property.

serviceProvider
IServiceProvider

A service provider implementation that is supplied by the designer host and that is used to obtain additional design-time services.

Returns

The value of the specified URL parameter if the expression evaluation succeeded; otherwise, null.

Remarks

The visual designer uses the EvaluateExpression method to evaluate a RouteValue expression and to provide the design-time value for an associated control property.

Applies to

See also