MainPipeClass 클래스
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
데이터 플로우 레이아웃에서 구성 요소를 추가하고 연결합니다.
public ref class MainPipeClass : Microsoft::SqlServer::Dts::Pipeline::Wrapper::IDTSPipeline130, Microsoft::SqlServer::Dts::Pipeline::Wrapper::MainPipe
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.Guid("C4D4D1F8-B3EF-4A16-9E0B-BD837F067CAA")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
public class MainPipeClass : Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSPipeline130, Microsoft.SqlServer.Dts.Pipeline.Wrapper.MainPipe
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
[System.Runtime.InteropServices.Guid("A28DC28C-BEA5-4208-AED4-82EB7A1DB758")]
public class MainPipeClass : Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSPipeline130, Microsoft.SqlServer.Dts.Pipeline.Wrapper.MainPipe
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)]
[System.Runtime.InteropServices.Guid("D9DA2996-AD06-4166-9C0C-C53E29834AF2")]
public class MainPipeClass : Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSPipeline130, Microsoft.SqlServer.Dts.Pipeline.Wrapper.MainPipe
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.Guid("C4D4D1F8-B3EF-4A16-9E0B-BD837F067CAA")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
type MainPipeClass = class
interface IDTSPipeline100
interface MainPipe
interface IDTSObjectModel100
interface IDTSPipeline130
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
[<System.Runtime.InteropServices.Guid("A28DC28C-BEA5-4208-AED4-82EB7A1DB758")>]
type MainPipeClass = class
interface IDTSPipeline100
interface MainPipe
interface IDTSObjectModel100
interface IDTSPipeline130
[<System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.None)>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FCanCreate)>]
[<System.Runtime.InteropServices.Guid("D9DA2996-AD06-4166-9C0C-C53E29834AF2")>]
type MainPipeClass = class
interface IDTSPipeline100
interface MainPipe
interface IDTSObjectModel100
interface IDTSPipeline130
Public Class MainPipeClass
Implements IDTSPipeline130, MainPipe
- 상속
-
MainPipeClass
- 특성
- 구현
예제
다음 코드 예시는 패키지에 데이터 흐름 작업을 추가하고, OLE DB 소스 컴포넌트와 OLE DB 목적지 컴포넌트를 추가하며, 두 컴포넌트 간의 경로를 설정합니다.
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
설명
이 클래스는 데이터 흐름 작업을 나타내며, 프로그래밍적으로 데이터 흐름 레이아웃을 구축할 때 사용됩니다. 클래스의 인스턴스는 데이터 플로우 작업을 ExecutablesPackage. 컴포넌트는 속성을 ComponentMetaDataCollection 사용하여 작업에 추가합니다. 이 속성을 사용하여 PathCollection 구성 요소 간 연결이 구축됩니다.
생성자
| Name | Description |
|---|---|
| MainPipeClass() |
MainPipeClass새 인스턴스를 초기화합니다. |
속성
| Name | Description |
|---|---|
| AutoAdjustBufferSize |
데이터 흐름 내 버퍼 크기를 자동으로 설정합니다. |
| AutoGenerateIDForNewObjects |
데이터 흐름이 자동으로 생성되고 새로 생성된 객체에 대해 ID 속성을 설정하는지 여부를 지정하는 값을 받거나 설정합니다. |
| BLOBTempStoragePath |
이진 대형 객체(BLOB)가 임시로 디스크에 기록되는 파일 시스템 위치를 지정하는 값을 받거나 설정합니다. |
| BufferManager |
메인 파이프의 버퍼 매니저를 받아옵니다. |
| BufferTempStoragePath |
버퍼 데이터를 임시로 캐시하는 데 사용되는 파일 시스템 경로를 얻거나 설정합니다. |
| ComponentMetaDataCollection |
작업 내 데이터 흐름 구성 요소 수집을 받습니다. |
| DefaultBufferMaxRows |
작업이 허용하는 최대 행 수를 버퍼에서 IDTSBuffer100 얻거나 설정합니다. |
| DefaultBufferSize |
작업이 생성한 객체의 IDTSBuffer100 기본 크기를 받거나 설정합니다. |
| EnableCacheUpdate |
데이터 흐름 작업이 캐시 업데이트를 활성화하는지 여부를 나타내는 값을 받거나 설정합니다. |
| EnableDisconnectedColumns |
작업이 분리된 열을 활성화하는지 여부를 나타내는 값을 받거나 설정합니다. |
| EngineThreads |
데이터 흐름 작업이 사용하는 스레드 수를 얻거나 설정합니다. |
| Events |
데이터 플로우와 그 안에 포함된 구성 요소가 실행 중 이벤트를 발생시키는 데 사용하는 이벤트 인터페이스를 설정합니다. |
| IDTSObjectModel100_AutoGenerateIDForNewObjects |
데이터 흐름이 자동으로 생성되고 새로 생성된 객체에 대해 ID 속성을 설정하는지 여부를 지정하는 값을 받거나 설정합니다. |
| IDTSObjectModel100_ComponentMetaDataCollection |
작업 내 데이터 흐름 구성 요소 수집을 받습니다. |
| IDTSObjectModel100_EnableCacheUpdate |
데이터 플로우 작업이 캐시 업데이트를 활성화하는지 여부를 나타내는 값을 받거나 설정합니다. |
| IDTSObjectModel100_EnableDisconnectedColumns |
데이터 플로우 작업이 메인 파이프에서 분리된 열을 활성화하는지 여부를 나타내는 값을 받거나 설정합니다. |
| IDTSObjectModel100_IsSavingXml |
데이터 흐름 작업 저장 값을 XML 형식으로 받거나 설정합니다. |
| IDTSObjectModel100_PathCollection |
데이터 흐름 작업을 위한 수집을 IDTSPathCollection100 받아요. |
| IDTSPipeline130_AutoGenerateIDForNewObjects |
데이터 플로우 레이아웃에서 구성 요소를 추가하고 연결합니다. |
| IDTSPipeline130_BLOBTempStoragePath |
데이터 플로우 레이아웃에서 구성 요소를 추가하고 연결합니다. |
| IDTSPipeline130_BufferManager |
데이터 플로우 레이아웃에서 구성 요소를 추가하고 연결합니다. |
| IDTSPipeline130_BufferTempStoragePath |
데이터 플로우 레이아웃에서 구성 요소를 추가하고 연결합니다. |
| IDTSPipeline130_ComponentMetaDataCollection |
데이터 플로우 레이아웃에서 구성 요소를 추가하고 연결합니다. |
| IDTSPipeline130_DefaultBufferMaxRows |
데이터 플로우 레이아웃에서 구성 요소를 추가하고 연결합니다. |
| IDTSPipeline130_DefaultBufferSize |
데이터 플로우 레이아웃에서 구성 요소를 추가하고 연결합니다. |
| IDTSPipeline130_EnableCacheUpdate |
데이터 플로우 레이아웃에서 구성 요소를 추가하고 연결합니다. |
| IDTSPipeline130_EnableDisconnectedColumns |
데이터 플로우 레이아웃에서 구성 요소를 추가하고 연결합니다. |
| IDTSPipeline130_EngineThreads |
데이터 플로우 레이아웃에서 구성 요소를 추가하고 연결합니다. |
| IDTSPipeline130_Events |
데이터 플로우 레이아웃에서 구성 요소를 추가하고 연결합니다. |
| IDTSPipeline130_IsSavingXml |
데이터 플로우 레이아웃에서 구성 요소를 추가하고 연결합니다. |
| IDTSPipeline130_PathCollection |
데이터 플로우 레이아웃에서 구성 요소를 추가하고 연결합니다. |
| IDTSPipeline130_PersistenceCustomPropertyCollection[DTSPersistenceFormat] |
데이터 플로우 레이아웃에서 구성 요소를 추가하고 연결합니다. |
| IDTSPipeline130_RunInOptimizedMode |
데이터 플로우 레이아웃에서 구성 요소를 추가하고 연결합니다. |
| IDTSPipeline130_VariableDispenser |
데이터 플로우 레이아웃에서 구성 요소를 추가하고 연결합니다. |
| IsSavingXml |
작업이 XML 형식으로 저장되는지 여부를 나타내는 값을 받거나 설정합니다. |
| PathCollection |
데이터 흐름 작업을 위한 수집을 IDTSPathCollection100 받아요. |
| PersistenceCustomPropertyCollection[DTSPersistenceFormat] |
데이터 흐름 작업의 커스텀 속성 컬렉션의 영속성 형식을 가져옵니다. |
| RunInOptimizedMode |
데이터 흐름 작업이 최적화 모드로 실행되는지 여부를 지정하는 값을 받거나 설정합니다. |
| VariableDispenser |
파일을 설정하여 읽기와 쓰기 위해 패키지 내 변수를 잠가게 합니다 IDTSVariableDispenser100 . |