IVsDataObjectCollection.IndexOf Method (String)

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

'宣言
Function IndexOf ( _
    identifier As String _
) As Integer
'使用
Dim instance As IVsDataObjectCollection
Dim identifier As String
Dim returnValue As Integer

returnValue = instance.IndexOf(identifier)
int IndexOf(
    string identifier
)
int IndexOf(
    String^ identifier
)
function IndexOf(
    identifier : String
) : int

Parameters

  • identifier
    Type: System.String

    A string containing the identifier parts that uniquely identify the data object requested, separated by a delimiter character.

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.

Permissions

See Also

Reference

IVsDataObjectCollection Interface

IVsDataObjectCollection Members

IndexOf Overload

Microsoft.VisualStudio.Data.Services Namespace