IDtsDesignerUtilitiesService.EditExpression Method (IWin32Window, DtsContainer, Type, String)


Displays the Expression Builder dialog box that lets the end user use the Integration Services expression language to create and test an expression.

Namespace:   Microsoft.SqlServer.Dts.Design
Assembly:  Microsoft.SqlServer.Dts.Design (in Microsoft.SqlServer.Dts.Design.dll)

bool EditExpression(
	IWin32Window parentWindow,
	DtsContainer dtsContainer,
	Type expressionType,
	ref string expression


Type: System.Windows.Forms.IWin32Window

The IWin32Window handle to the Windows form from which the Expression Builder dialog box is invoked.

Type: Microsoft.SqlServer.Dts.Runtime.DtsContainer

The DtsContainer that defines the scope for package variables that can be used in the expression.

Type: System.Type

The Type of the return type of the expression.

Type: System.String

A string that is passed by reference and represents the expression.

Return Value

Type: System.Boolean

true if the expression has changed; otherwise, false.

You can use the EditExpression method whenever you want to let the user create or modify an expression. However, to modify a property expression, the EditPropertyExpression method might be more useful. The EditPropertyExpression method determines the return type of the expression from the data type of the property and assigns the expression to the property for you.

Return to top