Compartir a través de


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

'Declaration
Function IndexOf ( _
    name As String _
) As Integer
int IndexOf(
    string name
)
int IndexOf(
    String^ name
)
abstract IndexOf : 
        name:string -> int
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.

.NET Framework Security

See Also

Reference

IVsDataExplorerChildNodeCollection Interface

IndexOf Overload

Microsoft.VisualStudio.Data.Services Namespace