IDtsComponentUI.Edit(IWin32Window, Variables, Connections) 메서드

정의

구성 요소가 편집될 때 호출됩니다.

public:
 bool Edit(System::Windows::Forms::IWin32Window ^ parentWindow, Microsoft::SqlServer::Dts::Runtime::Variables ^ variables, Microsoft::SqlServer::Dts::Runtime::Connections ^ connections);
public bool Edit (System.Windows.Forms.IWin32Window parentWindow, Microsoft.SqlServer.Dts.Runtime.Variables variables, Microsoft.SqlServer.Dts.Runtime.Connections connections);
abstract member Edit : System.Windows.Forms.IWin32Window * Microsoft.SqlServer.Dts.Runtime.Variables * Microsoft.SqlServer.Dts.Runtime.Connections -> bool
Public Function Edit (parentWindow As IWin32Window, variables As Variables, connections As Connections) As Boolean

매개 변수

parentWindow
IWin32Window

SSIS 디자이너의 System.Windows.Forms.IWin32Window입니다.

variables
Variables

구성 요소가 들어 있는 데이터 흐름 태스크에서 액세스할 수 있는 Variables 컬렉션입니다.

connections
Connections

구성 요소가 들어 있는 데이터 흐름 태스크에서 액세스할 수 있는 Connections 컬렉션입니다.

반환

true 값은 구성 요소가 수정되었음을 지정합니다.

예제

다음 예제에서는 메서드의 샘플 구현을 보여 줍니다 Edit . 이 샘플에서는 새 창이 만들어지고 대화 상자로 표시됩니다. System.Windows.Forms.Form.DialogResult 속성은 구성 요소가 수정되었는지 여부를 확인하는 데 사용되며 함수의 반환 값을 제어합니다.

public bool Edit(IWin32Window parentWindow, Microsoft.SqlServer.Dts.Runtime.Variables variables, Microsoft.SqlServer.Dts.Runtime.Connections connections)  
{  
// Pass the dtsComponentMetaData parameter received  
// in the Initialize method.  
MyUI myUI = new MyUI(dtsComponentMetaData);  

if (myUI.ShowDialog(parentWindow) == DialogResult.OK)  
    return true;  
else  
    return false;  
}  
Public Function Edit(ByVal parentWindow As IWin32Window, ByVal variables As Microsoft.SqlServer.Dts.Runtime.Variables, ByVal connections As Microsoft.SqlServer.Dts.Runtime.Connections) As Boolean   
 Dim myUI As MyUI = New MyUI(dtsComponentMetaData)   
 If myUI.ShowDialog(parentWindow) = DialogResult.OK Then   
   Return True   
 Else   
   Return False   
 End If   
End Function  

설명

이 메서드는 구성 요소가 SSIS 디자이너에서 편집될 때 호출됩니다. 이 메서드를 사용하여 구성 요소에 대한 사용자 인터페이스를 구현하는 창을 만들고 표시합니다.

컬렉션은 connections 패키지의 개체에 ConnectionManager 대한 액세스를 제공합니다. 이 컬렉션을 사용하여 구성 요소에서 사용할 수 있는 개체 목록을 ConnectionManager 표시할 수 있습니다.

이 메서드의 true 반환 값은 구성 요소가 수정되었음을 디자이너에 알리고, 이로 인해 패키지가 더티로 플래그가 지정되고 PropertyGrid와 같은 다른 UI 요소가 업데이트됩니다.

SSIS 디자이너에 창을 표시할 때 매개 변수를 parentWindow 사용하여 디자이너의 클라이언트 영역 내에 창이 표시되는지 확인합니다.

적용 대상