次の方法で共有


IDTSInputCollection100.New メソッド

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

名前空間:  Microsoft.SqlServer.Dts.Pipeline.Wrapper
アセンブリ:  Microsoft.SqlServer.DTSPipelineWrap (Microsoft.SqlServer.DTSPipelineWrap.dll)

構文

'宣言
Function New As IDTSInput100
'使用
Dim instance As IDTSInputCollection100 
Dim returnValue As IDTSInput100 

returnValue = instance.New()
IDTSInput100 New()
IDTSInput100^ New()
abstract New : unit -> IDTSInput100
function New() : IDTSInput100

戻り値

型: Microsoft.SqlServer.Dts.Pipeline.Wrapper.IDTSInput100
新しく追加された IDTSInput100 オブジェクトを返します。

説明

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

プログラムで既存のコンポーネントに入力を追加する場合、コンポーネントのメタデータを直接変更するのではなく、コンポーネントのデザイン時インスタンスの InsertInput メソッドを呼び出す必要があります。 メタデータに直接アクセスすると、コンポーネントがメタデータの変更を監視および防止する機能がバイパスされます。

使用例

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

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

関連項目

参照

IDTSInputCollection100 インターフェイス

Microsoft.SqlServer.Dts.Pipeline.Wrapper 名前空間