Share via


Source.GetTaskProvider Method

Definition

Gets the task provider that manages the error tasks.

public:
 virtual Microsoft::VisualStudio::Shell::TaskProvider ^ GetTaskProvider();
public virtual Microsoft.VisualStudio.Shell.TaskProvider GetTaskProvider ();
abstract member GetTaskProvider : unit -> Microsoft.VisualStudio.Shell.TaskProvider
override this.GetTaskProvider : unit -> Microsoft.VisualStudio.Shell.TaskProvider
Public Overridable Function GetTaskProvider () As TaskProvider

Returns

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.

Applies to