IDTSExternalMetadataColumnCollection100.GetObjectIndexByID(Int32) 方法

定义

获取具有指定 ID 的 IDTSExternalMetadataColumn100 对象的索引。

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

检索其索引的列的 ID。

返回

一个整数,包含从零开始的集合中的 IDTSExternalMetadataColumn100 位置。

属性

注解

如果在集合中找不到由 lID 参数指定的外部元数据列, DTS_E_ELEMENTNOTFOUND 则会发生异常。

适用于