Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
Selects the provider currently displayed in the tasklist.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
Syntax
'Declaration
Function SetActiveProvider ( _
ByRef rguidProvider As Guid _
) As Integer
'Usage
Dim instance As IVsTaskList2
Dim rguidProvider As Guid
Dim returnValue As Integer
returnValue = instance.SetActiveProvider(rguidProvider)
int SetActiveProvider(
ref Guid rguidProvider
)
int SetActiveProvider(
[InAttribute] Guid% rguidProvider
)
abstract SetActiveProvider :
rguidProvider:Guid byref -> int
function SetActiveProvider(
rguidProvider : Guid
) : int
Parameters
- rguidProvider
Type: System.Guid%
[in] A Provider Identifier; an object of type REFGUID.
Return Value
Type: System.Int32
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
);
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.