Share via


TaskProvider.TaskCollection.Add Method

Definition

Overloads

Add(Task)

Adds a task to the collection.

Add(TaskListItem)

Add(Task)

Adds a task to the collection.

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

Parameters

task
Task

The task to add.

Returns

The index of the added task.

Applies to

Add(TaskListItem)

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

Parameters

Returns

Applies to