共用方式為


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<Object[]

    包含可唯一識別要求的資料物件的組件識別項的陣列。

傳回值

類型:Int32
整數值,大於或等於 0,代表資料物件的索引中符合指定之識別項的集合中則為-1,如果找不到資料物件。

.NET Framework 安全性

請參閱

參考

IVsDataObjectCollection 介面

IndexOf 多載

Microsoft.VisualStudio.Data.Services 命名空間