IVsDataObjectCollection.IndexOf 方法 (array<Object )

返回数据对象的索引。与指定的标识符的集合。

命名空间:  Microsoft.VisualStudio.Data.Services
程序集:  Microsoft.VisualStudio.Data.Services(在 Microsoft.VisualStudio.Data.Services.dll 中)

语法

声明
Function IndexOf ( _
    identifier As Object() _
) As Integer
int IndexOf(
    Object[] identifier
)
int IndexOf(
    array<Object^>^ identifier
)
abstract IndexOf : 
        identifier:Object[] -> int 
function IndexOf(
    identifier : Object[]
) : int

参数

  • identifier
    类型:array<System.Object[]
    包含唯一标识请求的数据对象的标识符部件的数组。

返回值

类型:System.Int32
整数值,大于或等于0,表示数据对象的索引。与指定的标识符的集合的或-1;如果找不到数据对象。

.NET Framework 安全性

请参见

参考

IVsDataObjectCollection 接口

IndexOf 重载

Microsoft.VisualStudio.Data.Services 命名空间