IDTSInputCollection100.New 方法

定义

public:
 Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2014::IDTSInput100 ^ New();
[System.Runtime.InteropServices.DispId(14)]
public Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.IDTSInput100 New ();
[<System.Runtime.InteropServices.DispId(14)>]
abstract member New : unit -> Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.IDTSInput100
Public Function New () As IDTSInput100

返回

IDTSInput100

返回新添加的 IDTSInput100 对象。

属性

示例

下面的代码示例将一个输入对象添加到组件的输入集合。

public override void ProvideComponentProperties()  
{  
    IDTSInput100 input = ComponentMetaData.InputCollection.New();  
    input.Name = "DTSSampleInput";  
}  

注解

新方法会创建一个输入对象,将其添加到集合中,然后返回输入。 组件通常在调用方法的过程中创建输入对象 ProvideComponentProperties

以编程方式将输入添加到现有组件时, InsertInput 应调用组件的设计时实例的方法,而不是直接修改组件的元数据。 直接访问元数据会绕过组件监视和阻止其元数据更改的能力。

适用于