Removes the specified error task from the error Task window.
Namespace: Microsoft.VisualStudio.Package
Assembly: Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'宣言
Public Sub RemoveTask ( _
task As DocumentTask _
)
'使用
Dim instance As Source
Dim task As DocumentTask
instance.RemoveTask(task)
public void RemoveTask(
DocumentTask task
)
public:
void RemoveTask(
DocumentTask^ task
)
public function RemoveTask(
task : DocumentTask
)
Parameters
task
Type: Microsoft.VisualStudio.Package.DocumentTaskA DocumentTask object representing the error task to remove.
Remarks
This method searches the internal TaskProvider list for a matching DocumentTask object and removes the found object.
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.