Retrieves the index of the connection node corresponding to the specified data object identifier.
Namespace: Microsoft.VisualStudio.Data.Services
Assembly: Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)
Syntax
'宣言
Function IndexOf ( _
itemId As Integer _
) As Integer
'使用
Dim instance As IVsDataExplorerChildNodeCollection
Dim itemId As Integer
Dim returnValue As Integer
returnValue = instance.IndexOf(itemId)
int IndexOf(
int itemId
)
int IndexOf(
int itemId
)
function IndexOf(
itemId : int
) : int
Parameters
itemId
Type: System.Int32An integer value representing the ID of the data object.
Return Value
Type: System.Int32
The index of the connection node in Server Explorer, if found; otherwise, -1.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
IVsDataExplorerChildNodeCollection Interface