RouteUrlExpressionEditor::EvaluateExpression Method (String^, Object^, Type^, IServiceProvider^)
.NET Framework (current version)
Evaluates a RouteUrl expression and provides the design-time value.
Assembly: System.Design (in System.Design.dll)
public: virtual Object^ EvaluateExpression( String^ expression, Object^ parseTimeData, Type^ propertyType, IServiceProvider^ serviceProvider ) override
Parameters
- expression
-
Type:
System::String^
A RouteUrl expression to evaluate. The expression does not include the RouteUrl expression prefix.
- parseTimeData
-
Type:
System::Object^
An object that contains additional parsing information for evaluating the expression.
- propertyType
-
Type:
System::Type^
The type of the control property.
- serviceProvider
-
Type:
System::IServiceProvider^
A service provider implementation supplied by the designer host that is used to obtain additional design-time services.
Return Value
Type: System::Object^The URL for the specified route and route parameter values if the expression evaluation succeeded; otherwise, null.
The visual designer uses the EvaluateExpression method to evaluate a RouteUrl expression and provide the design-time value for an associated control property.
.NET Framework
Available since 4.0
Available since 4.0
Show: