IVsDataExplorerChildNodeCollection.IndexOf Method

Definition

Overloads

IndexOf(IVsDataObject)

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

IndexOf(Int32)

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

IndexOf(String)

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

IndexOf(String, Object[])

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

IndexOf(IVsDataObject)

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

public:
 int IndexOf(Microsoft::VisualStudio::Data::Services::IVsDataObject ^ obj);
public int IndexOf (Microsoft.VisualStudio.Data.Services.IVsDataObject obj);
abstract member IndexOf : Microsoft.VisualStudio.Data.Services.IVsDataObject -> int
Public Function IndexOf (obj As IVsDataObject) As Integer

Parameters

obj
IVsDataObject

The data object to get the index for.

Returns

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

Applies to

IndexOf(Int32)

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

public:
 int IndexOf(int itemId);
public int IndexOf (int itemId);
abstract member IndexOf : int -> int
Public Function IndexOf (itemId As Integer) As Integer

Parameters

itemId
Int32

An integer value representing the ID of the data object.

Returns

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

Applies to

IndexOf(String)

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

public:
 int IndexOf(System::String ^ name);
public int IndexOf (string name);
abstract member IndexOf : string -> int
Public Function IndexOf (name As String) As Integer

Parameters

name
String

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

Returns

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

Applies to

IndexOf(String, Object[])

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

public:
 int IndexOf(System::String ^ typeName, cli::array <System::Object ^> ^ identifier);
public int IndexOf (string typeName, object[] identifier);
abstract member IndexOf : string * obj[] -> int
Public Function IndexOf (typeName As String, identifier As Object()) As Integer

Parameters

typeName
String

The name of the requested data object's type.

identifier
Object[]

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

Returns

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

Applies to