IDTSPath100 介面

定義

public interface class IDTSPath100 : Microsoft::SqlServer::Dts::Pipeline::Wrapper::Sql2014::IDTSObject100
[System.Runtime.InteropServices.Guid("7BD99105-F435-4265-83DA-BC0023CC293C")]
[System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)]
public interface IDTSPath100 : Microsoft.SqlServer.Dts.Pipeline.Wrapper.Sql2014.IDTSObject100
[<System.Runtime.InteropServices.Guid("7BD99105-F435-4265-83DA-BC0023CC293C")>]
[<System.Runtime.InteropServices.TypeLibType(System.Runtime.InteropServices.TypeLibTypeFlags.FDispatchable | System.Runtime.InteropServices.TypeLibTypeFlags.FDual)>]
type IDTSPath100 = interface
    interface IDTSObject100
Public Interface IDTSPath100
Implements IDTSObject100
屬性
實作

範例

以下程式碼範例示範如何建立一個新 IDTSPath100 物件,然後將上游元件的輸出附加到下游元件的輸入端。

public IDTSPath100 EstablishPath( MainPipe mp , IDTSOutput100 start , IDTSInput100 end )  
{  
IDTSPath100 path = mp.PathCollection.New();  
path.AttachPathAndPropagateNotifications( start, end );  
return path;  
}  
Public Function EstablishPath(ByVal mp As MainPipe, ByVal start As IDTSOutput100, ByVal end As IDTSInput100) As IDTSPath100   
 Dim path As IDTSPath100 = mp.PathCollection.New   
 path.AttachPathAndPropagateNotifications(start, end)   
 Return path   
End Function  

備註

路徑物件的建立是為了建立上游元件與IDTSInput100另一元件之間的IDTSOutput100資料流動。 一條路徑包含一個輸出物件,表示為 StartPoint,以及一個輸入,即該路徑的 。EndPoint 兩個元件之間的路徑是透過兩步驟建立的。 首先,透過呼叫 New 物件的 IDTSComponentMetaData100 路徑集合來建立路徑。 第二,透過呼喚 AttachPathAndPropagateNotifications 路徑本身來建立路徑。 此方法建立路徑並通知受影響元件其存在。

隨後,該StartPoint欄位會透過呼叫 SetUsageType映射到 。EndPoint

適用於