RouteValueExpressionEditor::EvaluateExpression Method (String^, Object^, Type^, IServiceProvider^)

.NET Framework (current version)
 
Use BaseTrue

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

Namespace:   System.Web.UI.Design
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 RouteValue expression to evaluate. The expression does not include the RouteValue expression prefix.

parseTimeData
Type: System::Object^

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

propertyType
Type: System::Type^

The type of the control property.

serviceProvider
Type: System::IServiceProvider^

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

Return Value

Type: System::Object^

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

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

.NET Framework
Available since 4.0
Return to top
Show: