Source.RemoveTask Method
Removes the specified error task from the error Task window.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Syntax
'宣言
Public Sub RemoveTask ( _
task As DocumentTask _
)
public void RemoveTask(
DocumentTask task
)
Parameters
- task
Type: Microsoft.VisualStudio.Package.DocumentTask
A 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.
.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.