IDtsComponentUI 인터페이스

Defines the methods called by SSIS Designer for the user interface of a data flow component.

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

네임스페이스:  Microsoft.SqlServer.Dts.Pipeline.Design
어셈블리:  Microsoft.SqlServer.Dts.Design(Microsoft.SqlServer.Dts.Design.dll)

구문

‘선언
<CLSCompliantAttribute(False)> _
Public Interface IDtsComponentUI
‘사용 방법
Dim instance As IDtsComponentUI
[CLSCompliantAttribute(false)]
public interface IDtsComponentUI
[CLSCompliantAttribute(false)]
public interface class IDtsComponentUI
[<CLSCompliantAttribute(false)>]
type IDtsComponentUI =  interface end
public interface IDtsComponentUI

IDtsComponentUI 유형에서 다음 멤버를 표시합니다.

메서드

  이름 설명
공용 메서드 Delete Called when the component is deleted from the SSIS Designer surface.
공용 메서드 Edit Called when a component is edited.
공용 메서드 Help [Reserved for future use.]
공용 메서드 Initialize Called to initialize the user interface of the component.
공용 메서드 New Called when a component is initially added to a Data Flow task.

맨 위로 이동

주의

Component developers can provide a user interface for a data flow component by specifying a Type and implementing this interface in the UITypeName property of the DtsPipelineComponentAttribute attribute. The designer calls the methods of this interface when the component is added, deleted, and edited inside the SSIS Designer.

The following code sample demonstrates a class that implements the IdtsComponentUI interface. For more information and the complete sample, see 데이터 흐름 구성 요소의 사용자 인터페이스 개발.

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

참고 항목

참조

Microsoft.SqlServer.Dts.Pipeline.Design 네임스페이스