IVsDataExplorerChildNodeCollection.IndexOf 方法 (IVsDataObject)
擷取連接節點中具有指定索引鍵的之資料物件的。
命名空間: Microsoft.VisualStudio.Data.Services
組件: Microsoft.VisualStudio.Data.Services (在 Microsoft.VisualStudio.Data.Services.dll 中)
語法
'宣告
Function IndexOf ( _
obj As IVsDataObject _
) As Integer
int IndexOf(
IVsDataObject obj
)
int IndexOf(
IVsDataObject^ obj
)
abstract IndexOf :
obj:IVsDataObject -> int
function IndexOf(
obj : IVsDataObject
) : int
參數
- obj
型別:Microsoft.VisualStudio.Data.Services.IVsDataObject
取得索引的資料物件。
傳回值
型別:System.Int32
連接節點的索引在伺服器總管中,則為,如果有找到,則為,否則為-1。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。