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)中显示为 数据流 Task))是 COM 接口的IDTSPipeline100托管实现。 它是在程序化创建或修改包中数据流任务时,从托管代码中使用的接口。 有关该对象可用方法和属性的概述,请参见 MainPipeClass 文档。

适用于