- expression
An expression string to evaluate. The expression does not include the expression prefix.
- parseTimeData
An object containing additional parsing information for evaluating expression. This typically is provided by the expression builder.
- propertyType
The type of the control property to which expression is bound.
- serviceProvider
A service provider implementation supplied by the designer host, used to obtain additional design-time services.
![]()
The object referenced by the evaluated expression string, if the expression evaluation succeeded; otherwise, null.
The visual designer host uses the ExpressionEditor.EvaluateExpression(string, object, Type, IServiceProvider) method to evaluate an expression and provide the design-time value for an associated control property.
The visual designer uses the System.Web.Compilation.ExpressionBuilder.ParseExpression(string, Type, System.Web.Compilation.ExpressionBuilderContext) method to parse the expression string at design time, and then calls the ExpressionEditor.EvaluateExpression(string, object, Type, IServiceProvider) method with the parsed expression data. The visual designer uses the evaluated expression result to assign control property values that are rendered on the design surface.