TaskProvider.TaskCollection.IndexOf Method

Gets the index of the specified task in the collection.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'宣言
Public Function IndexOf ( _
    task As Task _
) As Integer
'使用
Dim instance As TaskProvider..::.TaskCollection
Dim task As Task
Dim returnValue As Integer

returnValue = instance.IndexOf(task)
public int IndexOf(
    Task task
)
public:
int IndexOf(
    Task^ task
)
public function IndexOf(
    task : Task
) : int

Parameters

Return Value

Type: System.Int32

The index of the task.

Permissions

See Also

Reference

TaskProvider.TaskCollection Class

TaskProvider.TaskCollection Members

Microsoft.VisualStudio.Shell Namespace