แก้ไข

แชร์ผ่าน


RouteUrlExpressionEditor.EvaluateExpression Method

Definition

Evaluates a RouteUrl 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 RouteUrl expression to evaluate. The expression does not include the RouteUrl expression prefix.

parseTimeData
Object

An object that contains additional parsing information for evaluating the expression.

propertyType
Type

The type of the control property.

serviceProvider
IServiceProvider

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

Returns

The URL for the specified route and route parameter values if the expression evaluation succeeded; otherwise, null.

Remarks

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

Applies to

See also