다음을 통해 공유


MainPipeClass 클래스

Adds and connects components in a data flow layout.

상속 계층

System.Object
  Microsoft.SqlServer.Dts.Pipeline.Wrapper.MainPipeClass

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

구문

‘선언
<ClassInterfaceAttribute(ClassInterfaceType.None)> _
<GuidAttribute("5918251B-2970-45A4-AB5F-01C3C588FE5A")> _
Public Class MainPipeClass _
    Implements IDTSPipeline100, MainPipe, IDTSObjectModel100
‘사용 방법
Dim instance As MainPipeClass
[ClassInterfaceAttribute(ClassInterfaceType.None)]
[GuidAttribute("5918251B-2970-45A4-AB5F-01C3C588FE5A")]
public class MainPipeClass : IDTSPipeline100, 
    MainPipe, IDTSObjectModel100
[ClassInterfaceAttribute(ClassInterfaceType::None)]
[GuidAttribute(L"5918251B-2970-45A4-AB5F-01C3C588FE5A")]
public ref class MainPipeClass : IDTSPipeline100, 
    MainPipe, IDTSObjectModel100
[<ClassInterfaceAttribute(ClassInterfaceType.None)>]
[<GuidAttribute("5918251B-2970-45A4-AB5F-01C3C588FE5A")>]
type MainPipeClass =  
    class 
        interface IDTSPipeline100 
        interface MainPipe 
        interface IDTSObjectModel100 
    end
public class MainPipeClass implements IDTSPipeline100, MainPipe, IDTSObjectModel100

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

생성자

  이름 설명
공용 메서드 MainPipeClass Initializes a new instance of the MainPipeClass.

맨 위로 이동

속성

  이름 설명
공용 속성 AutoGenerateIDForNewObjects Gets or sets a value that specifies whether a data flow automatically generates and sets the ID property for newly created objects.
공용 속성 BLOBTempStoragePath Gets or sets a value that specifies the file system location where binary large objects (BLOBs) are temporarily written to disk.
공용 속성 BufferManager Gets the buffer manager for the main pipe.
공용 속성 BufferTempStoragePath Gets or sets the file system path used to temporarily cache buffer data.
공용 속성 ComponentMetaDataCollection Gets the collection of data flow components in the task.
공용 속성 DefaultBufferMaxRows Gets or sets the maximum number of rows the task allows in an IDTSBuffer100 buffer.
공용 속성 DefaultBufferSize Gets or sets the default size of the IDTSBuffer100 objects created by a task.
공용 속성 EnableCacheUpdate Gets or sets a value that indicates whether the data flow task enables cache updates.
공용 속성 EnableDisconnectedColumns Gets or sets a value that indicates whether the task enables disconnected columns.
공용 속성 EngineThreads Gets or sets the number of threads a data flow task uses.
공용 속성 Events Sets the events interface that a data flow, and the components it contains, use to raise events during execution.
공용 속성 IDTSObjectModel100_AutoGenerateIDForNewObjects Gets or sets a value that specifies whether a data flow automatically generates and sets the ID property for newly created objects.
공용 속성 IDTSObjectModel100_ComponentMetaDataCollection Gets the collection of data flow components in the task.
공용 속성 IDTSObjectModel100_EnableCacheUpdate Gets or sets a value that indicates whether the data flow task enables the cache updates.
공용 속성 IDTSObjectModel100_EnableDisconnectedColumns Gets or sets a value that indicates whether the data flow task enables the disconnected columns in the main pipe.
공용 속성 IDTSObjectModel100_IsSavingXml Gets or sets a value that indicates the data flow task saves in Xml format.
공용 속성 IDTSObjectModel100_PathCollection Gets the IDTSPathCollection100 collection for a data flow task.
공용 속성 IsSavingXml Gets or sets a value that indicates whether the task saves in Xml format.
공용 속성 PathCollection Gets the IDTSPathCollection100 collection for a data flow task.
공용 속성 PersistenceCustomPropertyCollection Gets the persistence format of the data flow task's custom property collection.
공용 속성 RunInOptimizedMode Gets or sets a value that specifies whether a data flow task runs in optimized mode.
공용 속성 VariableDispenser Sets the IDTSVariableDispenser100 used to lock variables in a package for reading and writing.

맨 위로 이동

메서드

  이름 설명
공용 메서드 Equals (Object에서 상속됨)
보호된 메서드 Finalize (Object에서 상속됨)
공용 메서드 GetHashCode (Object에서 상속됨)
공용 메서드 GetNextPasteID Gets the next available ID that a data flow task generates.
공용 메서드 GetObjectByID Retrieves an object contained in a data flow task.
공용 메서드 GetType (Object에서 상속됨)
공용 메서드 IDTSObjectModel100_GetObjectByID Retrieves an object that is contained in a data flow task.
공용 메서드 IDTSObjectModel100_New Resets the layout of components in a data flow task.
공용 메서드 IDTSObjectModel100_UpdateCacheOnInputColumns Sets the data flow task to update the cache from previous version.
보호된 메서드 MemberwiseClone (Object에서 상속됨)
공용 메서드 New 인프라입니다. Creates a new instance of MainPipeClass.
공용 메서드 ToString (Object에서 상속됨)
공용 메서드 UpdateCacheOnInputColumns Sets the cache to upgrade from previous version.

맨 위로 이동

주의

This class represents the data flow task, and is used when programmatically building a data flow layout. An instance of the class is created by adding the data flow task to the Executables collection of a Package. Components are added to the task using the ComponentMetaDataCollection property. Connections are established between components using the PathCollection property.

The following code example adds a data flow task to a package, adds an OLE DB source component and an OLE DB destination component, and establishes a path between the two components.

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

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

스레드 보안

이 유형의 모든 공용 static(Visual Basic에서는 Shared) 멤버는 스레드로부터 안전합니다. 인스턴스 멤버는 스레드로부터의 안전성이 보장되지 않습니다.

참고 항목

참조

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