IDTSInputCollection100.GetObjectIndexByID(Int32) 方法

定義

擷取集合中 IDTSInput100 物件的索引。

public:
 int GetObjectIndexByID(int lID);
[System.Runtime.InteropServices.DispId(21)]
public int GetObjectIndexByID (int lID);
[<System.Runtime.InteropServices.DispId(21)>]
abstract member GetObjectIndexByID : int -> int
Public Function GetObjectIndexByID (lID As Integer) As Integer

參數

lID
Int32

輸入物件的識別碼。

傳回

Int32

整數,表示索引中專案的位置。

屬性

備註

GetObjectIndexByID方法會在輸入的輸入集合中,使用參數所指定的識別碼來抓取索引 lID 。 如果在集合中找不到具有指定識別碼的輸入,就會發生 Microsoft.SqlServer.Dts.HResults.DTS_E_OBJECTNOTINHASHTABLE 例外狀況。

適用於