共用方式為


IDtsDesignerUtilitiesService.EditExpression Method

Definition

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

public:
 bool EditExpression(System::Windows::Forms::IWin32Window ^ parentWindow, Microsoft::SqlServer::Dts::Runtime::DtsContainer ^ dtsContainer, Type ^ expressionType, System::String ^ % expression);
public bool EditExpression (System.Windows.Forms.IWin32Window parentWindow, Microsoft.SqlServer.Dts.Runtime.DtsContainer dtsContainer, Type expressionType, ref string expression);
abstract member EditExpression : System.Windows.Forms.IWin32Window * Microsoft.SqlServer.Dts.Runtime.DtsContainer * Type * string -> bool
Public Function EditExpression (parentWindow As IWin32Window, dtsContainer As DtsContainer, expressionType As Type, ByRef expression As String) As Boolean

Parameters

parentWindow
IWin32Window

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

dtsContainer
DtsContainer

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

expressionType
Type

The Type of the return type of the expression.

expression
String

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

Returns

true if the expression has changed; otherwise, false.

Remarks

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.

Applies to