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
'Declaration
Function IndexOf ( _
obj As IVsDataObject _
) As Integer
int IndexOf(
IVsDataObject obj
)
int IndexOf(
IVsDataObject^ obj
)
abstract IndexOf :
obj:IVsDataObject -> int
function IndexOf(
obj : IVsDataObject
) : int
Parameters
obj
Type: Microsoft.VisualStudio.Data.Services.IVsDataObjectThe data object 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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.