共用方式為


IVsDataExplorerChildNodeCollection.IndexOf 方法 (Int32)

擷取連接節點的索引以指定的資料物件識別項對應。

命名空間:  Microsoft.VisualStudio.Data.Services
組件:  Microsoft.VisualStudio.Data.Services (在 Microsoft.VisualStudio.Data.Services.dll 中)

語法

'宣告
Function IndexOf ( _
    itemId As Integer _
) As Integer
int IndexOf(
    int itemId
)
int IndexOf(
    int itemId
)
abstract IndexOf : 
        itemId:int -> int
function IndexOf(
    itemId : int
) : int

參數

  • itemId
    類型:Int32

    表示資料物件 ID 的整數值。

傳回值

類型:Int32
連接節點的索引在伺服器總管中,則為,如果有找到,則為,否則為-1。

.NET Framework 安全性

請參閱

參考

IVsDataExplorerChildNodeCollection 介面

IndexOf 多載

Microsoft.VisualStudio.Data.Services 命名空間