MainPipe 介面

定義

public interface class MainPipe : Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2012::IDTSPipeline100
[System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2012.MainPipeClass))]
[System.Runtime.InteropServices.Guid("410E91E9-2C45-487A-851A-5B3DFE747329")]
public interface MainPipe : Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2012.IDTSPipeline100
[<System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2012.MainPipeClass))>]
[<System.Runtime.InteropServices.Guid("410E91E9-2C45-487A-851A-5B3DFE747329")>]
type MainPipe = interface
    interface IDTSPipeline100
Public Interface MainPipe
Implements IDTSPipeline100
衍生
屬性
實作

範例

以下程式碼範例將 MainPipe 物件加入套件,並利用 InnerObject TaskHost 的特性取得 MainPipe。

Package p = new Package();  
Executable e = p.Executables.Add("DTS.Pipeline.1");  
TaskHost thMainPipe = e as TaskHost;  
MainPipe dataFlowTask = thMainPipe.InnerObject as MainPipe;  

備註

MainPipe(在 SQL Server Data Tools(SSDT)中顯示為 Data Flow Task)是 COM 介面的受管理實作IDTSPipeline100。 它是在程式化建立或修改套件中資料流任務時,從管理程式碼中所使用的介面。 關於此物件可用方法與屬性的概述,請參閱 MainPipeClass 文件。

適用於