RouteUrlExpressionEditor.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.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應