다음을 통해 공유


Source.GetTaskProvider Method

Gets the task provider that manages the error tasks.

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 Overridable Function GetTaskProvider As TaskProvider
public virtual TaskProvider GetTaskProvider()

Return Value

Type: Microsoft.VisualStudio.Shell.TaskProvider
A TaskProvider object.

Remarks

The TaskProvider manages the error Task window to show any error tasks that result from parsing errors. If you need to provide your own version of the TaskProvider class, you must derive a class from the Source class and override this method in order to instantiate your own TaskProvider class.

The base method returns the existing TaskProvider object or creates a new TaskProvider object, makes it the existing one, and returns it.

.NET Framework Security

See Also

Reference

Source Class

Microsoft.VisualStudio.Package Namespace