This documentation is archived and is not being maintained.

RouteValueExpressionEditor::EvaluateExpression Method

This member overrides ExpressionEditor::EvaluateExpression(String, Object, Type, IServiceProvider), and more complete documentation might be available in that topic.

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, nullptr.

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

Supported in: 4

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show: