Udostępnij za pośrednictwem


IVsTaskList2.SetActiveProvider(Guid) Method

Definition

Selects the provider currently displayed in the tasklist.

public:
 int SetActiveProvider(Guid % rguidProvider);
public int SetActiveProvider (ref Guid rguidProvider);
abstract member SetActiveProvider : Guid -> int
Public Function SetActiveProvider (ByRef rguidProvider As Guid) As Integer

Parameters

rguidProvider
Guid

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

Returns

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

Remarks

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 SetActiveProvider(  
   [in] REFGUID rguidProvider  
);  

Applies to