TaskProvider.TaskCollection.Add Method

Adds a task to the collection.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'宣言
Public Function Add ( _
    task As Task _
) As Integer
'使用
Dim instance As TaskProvider..::.TaskCollection
Dim task As Task
Dim returnValue As Integer

returnValue = instance.Add(task)
public int Add(
    Task task
)
public:
int Add(
    Task^ task
)
public function Add(
    task : Task
) : int

Parameters

Return Value

Type: System.Int32

The index of the added task.

Permissions

See Also

Reference

TaskProvider.TaskCollection Class

TaskProvider.TaskCollection Members

Microsoft.VisualStudio.Shell Namespace