IDtsComponentUI 인터페이스

정의

중요

이 API는 CLS 규격이 아닙니다.

데이터 흐름 구성 요소의 사용자 인터페이스에 대해 SSIS 디자이너에서 호출하는 메서드를 정의합니다.

public interface class IDtsComponentUI
[System.CLSCompliant(false)]
public interface IDtsComponentUI
[<System.CLSCompliant(false)>]
type IDtsComponentUI = interface
Public Interface IDtsComponentUI
특성

예제

다음 코드 샘플에서는 인터페이스를 구현하는 클래스를 <xref:Microsoft.SqlServer.Dts.Pipeline.Design.IdtsComponentUI> 보여 줍니다. 자세한 내용과 전체 샘플은 Data Flow 구성 요소에 대한 사용자 인터페이스 개발을 참조하세요.

using System;  
using System.Windows.Forms;  
using Microsoft.SqlServer.Dts.Runtime;  
using Microsoft.SqlServer.Dts.Pipeline.Design;  
using Microsoft.SqlServer.Dts.Pipeline.Wrapper;  

namespace Microsoft.Samples.SqlServer.Dts  
{  
    public class SampleComponentUI : IDtsComponentUI  
    {  
        IDTSComponentMetaData100 md;  
        IServiceProvider sp;  

        public void Help(System.Windows.Forms.IWin32Window parentWindow)  
        {  
        }  
        public void New(System.Windows.Forms.IWin32Window parentWindow)  
        {  
        }  
        public void Delete(System.Windows.Forms.IWin32Window parentWindow)  
        {  
        }  
        public bool Edit(System.Windows.Forms.IWin32Window parentWindow, Variables vars, Connections cons)  
        {  
            // Create the component's form, and then display it.  
            SampleComponentUIForm componentEditor = new SampleComponentUIForm(cons, vars, md);  

            DialogResult result  = componentEditor.ShowDialog(parentWindow);  

            if (result == DialogResult.OK)  
                return true;  

            return false;  
        }  
        public void Initialize(IDTSComponentMetaData100 dtsComponentMetadata, IServiceProvider serviceProvider)  
        {  
            // Store the component metadata.  
            this.md = dtsComponentMetadata;  
        }  
    }  
}  
Imports System   
Imports System.Windows.Forms   
Imports Microsoft.SqlServer.Dts.Runtime   
Imports Microsoft.SqlServer.Dts.Pipeline.Design   
Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper   

Public Class SampleComponentUI   
Implements IDtsComponentUI   
 Private md As IDTSComponentMetaData100   
 Private sp As IServiceProvider   

 Public Sub Help(ByVal parentWindow As System.Windows.Forms.IWin32Window)   
 End Sub   

 Public Sub New(ByVal parentWindow As System.Windows.Forms.IWin32Window)   
 End Sub   

 Public Sub Delete(ByVal parentWindow As System.Windows.Forms.IWin32Window)   
 End Sub   

 Public Function Edit(ByVal parentWindow As System.Windows.Forms.IWin32Window, ByVal vars As Variables, ByVal cons As Connections) As Boolean   
   Dim componentEditor As SampleComponentUIForm = New SampleComponentUIForm(cons, vars, md)   
   Dim result As DialogResult = componentEditor.ShowDialog(parentWindow)   
   If result = DialogResult.OK Then   
     Return True   
   End If   
   Return False   
 End Function   

 Public Sub Initialize(ByVal dtsComponentMetadata As IDTSComponentMetaData100, ByVal serviceProvider As IServiceProvider)   
   Me.md = dtsComponentMetadata   
 End Sub   
End Class  

설명

구성 요소 개발자는 Type을 지정하고 특성의 속성에서 이 인터페이스를 구현하여 데이터 흐름 구성 요소에 대한 사용자 인터페이스를 UITypeNameDtsPipelineComponentAttribute 제공할 수 있습니다. 디자이너는 구성 요소가 SSIS 디자이너 내에서 추가, 삭제 및 편집될 때 이 인터페이스의 메서드를 호출합니다.

메서드

Delete(IWin32Window)

구성 요소가 SSIS 디자이너 화면에서 삭제되면 호출됩니다.

Edit(IWin32Window, Variables, Connections)

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

Help(IWin32Window)

[나중에 사용하도록 예약되었습니다.]

Initialize(IDTSComponentMetaData100, IServiceProvider)

구성 요소의 사용자 인터페이스를 초기화하기 위해 호출됩니다.

New(IWin32Window)

구성 요소가 처음에 데이터 흐름 태스크에 추가될 때 호출됩니다.

적용 대상