TaskProvider.TaskCollection.Add 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
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
- task
- TaskListItem