Removes a task from the collection.
Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)
  Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
Syntax
声明
Public Sub Remove ( _
    task As Task _
)
用法
Dim instance As TaskProvider..::..TaskCollection
Dim task As Task
instance.Remove(task)
public void Remove(
    Task task
)
public:
void Remove(
    Task^ task
)
member Remove : 
        task:Task -> unit 
public function Remove(
    task : Task
)
Parameters
- task
 Type: Microsoft.VisualStudio.Shell.Task
 The task to remove.
.NET Framework Security
- 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