Inserts a task in the collection at the specified index.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
Syntax
'宣言
Public Sub Insert ( _
index As Integer, _
task As Task _
)
'使用
Dim instance As TaskProvider..::.TaskCollection
Dim index As Integer
Dim task As Task
instance.Insert(index, task)
public void Insert(
int index,
Task task
)
public:
void Insert(
int index,
Task^ task
)
public function Insert(
index : int,
task : Task
)
Parameters
index
Type: System.Int32The index at which to insert the task.
task
Type: Microsoft.VisualStudio.Shell.TaskThe task to insert.
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
TaskProvider.TaskCollection Class