Delen via


IVsDataObjectCollection.IndexOf Method (array<Object )

Returns the index of the data object in the collection that matches the specified identifier.

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

Syntax

'Declaration
Function IndexOf ( _
    identifier As Object() _
) As Integer
int IndexOf(
    Object[] identifier
)
int IndexOf(
    array<Object^>^ identifier
)
abstract IndexOf : 
        identifier:Object[] -> int
function IndexOf(
    identifier : Object[]
) : int

Parameters

  • identifier
    Type: array<System.Object[]

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

Return Value

Type: System.Int32
An integer value, greater than or equal to 0, representing the index of the data object in the collection that matches the specified identifier, or -1 if the data object is not found.

.NET Framework Security

See Also

Reference

IVsDataObjectCollection Interface

IndexOf Overload

Microsoft.VisualStudio.Data.Services Namespace