IVsDataExplorerChildNodeCollection.IndexOf Method (String, [])

Retrieves the index of the connection node corresponding to the specified name type name and identifiers.

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

Syntax

'宣言
Function IndexOf ( _
    typeName As String, _
    identifier As Object() _
) As Integer
'使用
Dim instance As IVsDataExplorerChildNodeCollection
Dim typeName As String
Dim identifier As Object()
Dim returnValue As Integer

returnValue = instance.IndexOf(typeName, _
    identifier)
int IndexOf(
    string typeName,
    Object[] identifier
)
int IndexOf(
    String^ typeName, 
    array<Object^>^ identifier
)
function IndexOf(
    typeName : String, 
    identifier : Object[]
) : int

Parameters

  • typeName
    Type: System.String

    The name of the requested data object's type.

  • identifier
    Type: []

    An array of identifier parts that uniquely identify the requested data object.

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