IVsDataExplorerChildNodeCollection.IndexOf Method (String)

Retrieves the index of the connection node corresponding to the specified name.

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

Syntax

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

returnValue = instance.IndexOf(name)
int IndexOf(
    string name
)
int IndexOf(
    String^ name
)
function IndexOf(
    name : String
) : int

Parameters

  • name
    Type: System.String

    The name of the connection node to get the index for.

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