Source.GetTaskProvider Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.