MainPipe 介面

定義

public interface class MainPipe : Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2014::IDTSPipeline100
[System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.MainPipeClass))]
[System.Runtime.InteropServices.Guid("6D3931AC-822D-414C-8F10-7447A54BA55C")]
public interface MainPipe : Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.IDTSPipeline100
[<System.Runtime.InteropServices.CoClass(typeof(Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.MainPipeClass))>]
[<System.Runtime.InteropServices.Guid("6D3931AC-822D-414C-8F10-7447A54BA55C")>]
type MainPipe = interface
    interface IDTSPipeline100
Public Interface MainPipe
Implements IDTSPipeline100
衍生
屬性
實作

範例

以下程式碼範例將 MainPipe 物件加入 a Package ,並利用 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。 它是在程式化建立或修改資料流程任務 Package時,從受管程式碼所使用的介面。 關於此物件可用方法與特性的概述,請參閱文件。MainPipeClass

適用於