TaskProvider.TaskCollection.Contains 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
Contains(Task) |
Gets whether or not the task exists in the collection |
Contains(TaskListItem) |
Contains(Task)
Gets whether or not the task exists in the collection
public:
bool Contains(Microsoft::VisualStudio::Shell::Task ^ task);
bool Contains(Microsoft::VisualStudio::Shell::Task const & task);
public bool Contains (Microsoft.VisualStudio.Shell.Task task);
member this.Contains : Microsoft.VisualStudio.Shell.Task -> bool
Public Function Contains (task As Task) As Boolean
Parameters
- task
- Task
The task for which to search.
Returns
true
if the task exists in the collection, otherwise false
.
Applies to
Contains(TaskListItem)
public:
bool Contains(Microsoft::VisualStudio::Shell::TaskListItem ^ task);
public bool Contains (Microsoft.VisualStudio.Shell.TaskListItem task);
member this.Contains : Microsoft.VisualStudio.Shell.TaskListItem -> bool
Public Function Contains (task As TaskListItem) As Boolean
Parameters
- task
- TaskListItem