TaskProvider.TaskCollection.IndexOf Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
- task
- TaskListItem