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
    类型:System.Int32
    表示数据对象的ID的整数值。

返回值

类型:System.Int32
连接节点的索引在服务器资源管理器中,因此,如果找到;否则,-1。

.NET Framework 安全性

请参见

参考

IVsDataExplorerChildNodeCollection 接口

IndexOf 重载

Microsoft.VisualStudio.Data.Services 命名空间