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 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。