TaskProvider.TaskCollection.IndexOf Method

Definition

Overloads

IndexOf(Task)

Gets the index of the specified task in the collection.

IndexOf(TaskListItem)

IndexOf(Task)

Gets the index of the specified task in the collection.

public:
 int IndexOf(Microsoft::VisualStudio::Shell::Task ^ task);
int IndexOf(Microsoft::VisualStudio::Shell::Task const & task);
public int IndexOf (Microsoft.VisualStudio.Shell.Task task);
member this.IndexOf : Microsoft.VisualStudio.Shell.Task -> int
Public Function IndexOf (task As Task) As Integer

Parameters

task
Task

The task for which to search.

Returns

The index of the task.

Applies to

IndexOf(TaskListItem)

public:
 int IndexOf(Microsoft::VisualStudio::Shell::TaskListItem ^ task);
public int IndexOf (Microsoft.VisualStudio.Shell.TaskListItem task);
member this.IndexOf : Microsoft.VisualStudio.Shell.TaskListItem -> int
Public Function IndexOf (task As TaskListItem) As Integer

Parameters

Returns

Applies to