Partager via


TaskProvider.TaskCollection.Contains Method

Definition

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

Returns

Applies to