IDTSInputCollection100.New 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
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 物件。
- 屬性
範例
下列程式碼範例會將輸入物件加入至元件的輸入集合。
public override void ProvideComponentProperties()
{
IDTSInput100 input = ComponentMetaData.InputCollection.New();
input.Name = "DTSSampleInput";
}
備註
新方法會建立輸入物件,並將它加入至集合,然後傳回輸入。 元件通常會在呼叫方法期間建立輸入物件 ProvideComponentProperties 。
以程式設計方式將輸入加入至現有的元件時, InsertInput 應呼叫元件設計階段實例的方法,而不是直接修改元件的中繼資料。 直接存取中繼資料會略過元件監視和防止變更中繼資料的能力。