IDTSInputCollection100.New メソッド

定義

新しい IDTSInput100 オブジェクトを作成し、それを IDTSInputCollection100に追加します。

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

返品

新たに追加された IDTSInput100 オブジェクトを返します。

属性

以下のコード例は、コンポーネントの入力コレクションに入力オブジェクトを追加します。

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

注釈

Newメソッドは入力オブジェクトを作成し、それをコレクションに追加し、入力を返します。 コンポーネントは通常、 ProvideComponentProperties メソッドへの呼び出し中に入力オブジェクトを作成します。

既存のコンポーネントに入力を追加する際は、コンポーネントのメタデータを直接変更するのではなく、そのコンポーネントの設計時インスタンスの InsertInput メソッドを呼び出すべきです。 メタデータへの直接アクセスは、コンポーネントがメタデータの変更を監視・防止する機能をバイパスします。

適用対象