This documentation is archived and is not being maintained.

IVsTaskList2.SetActiveProvider Method

Selects the provider currently displayed in the tasklist.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in

int SetActiveProvider (
	[InAttribute] ref Guid rguidProvider
int SetActiveProvider (
	/** @attribute InAttribute() */ /** @ref */ Guid rguidProvider
JScript does not support passing value-type arguments by reference.



[in] A Provider Identifier; an object of type REFGUID.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Selecting the provider currently displayed in the tasklist should not be done automatically (e.g. in response to a build or run action), but only when explicitly requested by the user. Users get annoyed when we switch things like this automatically.

COM Signature

From vsshell80.idl:

HRESULT IVsTaskList2::SetActiveProvider(
   [in] REFGUID rguidProvider