MainPipeClass 클래스

정의

public ref class MainPipeClass : Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2014::MainPipe
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.Guid("1CF081CA-677D-4561-967A-D06798F62DD6")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
public class MainPipeClass : Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.MainPipe
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.Guid("1CF081CA-677D-4561-967A-D06798F62DD6")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
type MainPipeClass = class
    interface IDTSPipeline100
    interface MainPipe
    interface IDTSObjectModel100
Public Class MainPipeClass
Implements MainPipe
상속
MainPipeClass
특성
구현

예제

다음 코드 예제에서는 패키지에 데이터 흐름 태스크를 추가하고, OLE DB 원본 구성 요소와 OLE DB 대상 구성 요소를 추가하고, 두 구성 요소 간의 경로를 설정합니다.

using System;  
using Microsoft.SqlServer.Dts.Runtime.;  
using Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014;  

namespace Microsoft.Samples.SqlServer.Dts  
{  
    public class Class1  
    {  
        public static void Main(string []args)  
        {  
            // Create the package.  
            Package p = new Package();  

            // Add the data flow task.  
            MainPipe mp = ((TaskHost)p.Executables.Add("DTS.Pipeline")).InnerObject as MainPipe;  

            // Add the OLE DB source component.  
            IDTSComponentMetaData100 mdOleDbSrc = mp.ComponentMetaDataCollection.New();  
            mdOleDbSrc.ComponentClassID = "DTSAdapter.OleDbSource";  
            mdOleDbSrc.Name = "OLEDB Source";  
            CManagedComponentWrapper wrpOledbSrc = mdOleDbSrc.Instantiate();  

            // Add the OLE DB destination component.  
            IDTSComponentMetaData100 mdOleDbDest = mp.ComponentMetaDataCollection.New();  
            mdOleDbDest.ComponentClassID = "DTSAdapter.OleDbDestination";  
            mdOleDbDest.Name = "OLEDB Destination";  
            CManagedComponentWrapper wrpOledbDest = mdOleDbSrc.Instantiate();  

            // Create a path and attach the output of the source to the input of the destination.  
            IDTSPath100 path = mp.PathCollection.New();  
            path.AttachPathAndPropagateNotifications(mdOleDbSrc.OutputCollection[0], mdOleDbDest.InputCollection[0]);  
        }  
    }  
}  
Imports System   
Imports Microsoft.SqlServer.Dts.Runtime   
Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper   
Namespace Microsoft.Samples.SqlServer.Dts   

 Public Class Class1   

   Public Shared Sub Main(ByVal args As String())   
     Dim p As Package = New Package   
     Dim mp As MainPipe = CType(CType(p.Executables.Add("DTS.Pipeline"), TaskHost).InnerObject, MainPipe)   
     Dim mdOleDbSrc As IDTSComponentMetaData100 = mp.ComponentMetaDataCollection.New   
     mdOleDbSrc.ComponentClassID = "DTSAdapter.OleDbSource"   
     mdOleDbSrc.Name = "OLEDB Source"   
     Dim wrpOledbSrc As CManagedComponentWrapper = mdOleDbSrc.Instantiate   
     Dim mdOleDbDest As IDTSComponentMetaData100 = mp.ComponentMetaDataCollection.New   
     mdOleDbDest.ComponentClassID = "DTSAdapter.OleDbDestination"   
     mdOleDbDest.Name = "OLEDB Destination"   
     Dim wrpOledbDest As CManagedComponentWrapper = mdOleDbSrc.Instantiate   
     Dim path As IDTSPath100 = mp.PathCollection.New   
     path.AttachPathAndPropagateNotifications(mdOleDbSrc.OutputCollection(0), mdOleDbDest.InputCollection(0))   
   End Sub   
 End Class   
End Namespace  

설명

이 클래스는 데이터 흐름 태스크를 나타내며 프로그래밍 방식으로 데이터 흐름 레이아웃을 빌드할 때 사용됩니다. 클래스의 인스턴스는 데이터 흐름 태스크를 컬렉션에 Executables 추가하여 만듭니다 Package. 구성 요소는 속성을 사용하여 ComponentMetaDataCollection 작업에 추가됩니다. 속성을 사용하여 구성 요소 간에 연결이 PathCollection 설정됩니다.

생성자

MainPipeClass()

속성

AutoGenerateIDForNewObjects
BLOBTempStoragePath
BufferManager
BufferTempStoragePath
ComponentMetaDataCollection
DefaultBufferMaxRows
DefaultBufferSize
EnableCacheUpdate
EnableDisconnectedColumns
EngineThreads
Events
IDTSObjectModel100_AutoGenerateIDForNewObjects
IDTSObjectModel100_ComponentMetaDataCollection
IDTSObjectModel100_EnableCacheUpdate
IDTSObjectModel100_EnableDisconnectedColumns
IDTSObjectModel100_IsSavingXml
IDTSObjectModel100_PathCollection
IsSavingXml
PathCollection
PersistenceCustomPropertyCollection[DTSPersistenceFormat]
RunInOptimizedMode
VariableDispenser

메서드

GetNextPasteID()
GetObjectByID(Int32)
IDTSObjectModel100_get_AutoGenerateIDForNewObjects()
IDTSObjectModel100_get_ComponentMetaDataCollection()
IDTSObjectModel100_get_EnableCacheUpdate()
IDTSObjectModel100_get_EnableDisconnectedColumns()
IDTSObjectModel100_get_IsSavingXml()
IDTSObjectModel100_get_PathCollection()
IDTSObjectModel100_GetObjectByID(Int32)
IDTSObjectModel100_New()
IDTSObjectModel100_set_AutoGenerateIDForNewObjects(Boolean)
IDTSObjectModel100_set_EnableCacheUpdate(Boolean)
IDTSObjectModel100_set_EnableDisconnectedColumns(Boolean)
IDTSObjectModel100_set_IsSavingXml(Boolean)
IDTSObjectModel100_UpdateCacheOnInputColumns()
New()
UpdateCacheOnInputColumns()

적용 대상