다음을 통해 공유


Source.GetTaskProvider Method

Gets the task provider that manages the error tasks.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

‘선언
Public Overridable Function GetTaskProvider As TaskProvider
‘사용 방법
Dim instance As Source
Dim returnValue As TaskProvider

returnValue = instance.GetTaskProvider()
public virtual TaskProvider GetTaskProvider()
public:
virtual TaskProvider^ GetTaskProvider()
abstract GetTaskProvider : unit -> TaskProvider 
override GetTaskProvider : unit -> TaskProvider 
public function GetTaskProvider() : TaskProvider

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

Source Members

Microsoft.VisualStudio.Package Namespace