IVsDataExplorerChildNodeCollection.IndexOf Method (IVsDataObject)

Retrieves the index of the connection node corresponding to the specified data object.

Namespace:  Microsoft.VisualStudio.Data.Services
Assembly:  Microsoft.VisualStudio.Data.Services (in Microsoft.VisualStudio.Data.Services.dll)

Syntax

'宣言
Function IndexOf ( _
    obj As IVsDataObject _
) As Integer
'使用
Dim instance As IVsDataExplorerChildNodeCollection
Dim obj As IVsDataObject
Dim returnValue As Integer

returnValue = instance.IndexOf(obj)
int IndexOf(
    IVsDataObject obj
)
int IndexOf(
    IVsDataObject^ obj
)
function IndexOf(
    obj : IVsDataObject
) : int

Parameters

Return Value

Type: System.Int32

The index of the connection node in Server Explorer, if found; otherwise, -1.

Permissions

See Also

Reference

IVsDataExplorerChildNodeCollection Interface

IVsDataExplorerChildNodeCollection Members

IndexOf Overload

Microsoft.VisualStudio.Data.Services Namespace