Freigeben über


IVsPackageDynamicToolOwnerEx.QueryShowTool Method

Enables the Package to dynamically control whether to show or hide the tool window. The environment calls this method when the user switches which window view set (or mode) is active, e.g. Design, Debugging, FullScreen, and so on.

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

Syntax

'Declaration
Function QueryShowTool ( _
    ByRef rguidPersistenceSlot As Guid, _
    dwId As UInteger, _
    <OutAttribute> ByRef pfShowTool As Integer _
) As Integer
'Usage
Dim instance As IVsPackageDynamicToolOwnerEx
Dim rguidPersistenceSlot As Guid
Dim dwId As UInteger
Dim pfShowTool As Integer
Dim returnValue As Integer

returnValue = instance.QueryShowTool(rguidPersistenceSlot, _
    dwId, pfShowTool)
int QueryShowTool(
    ref Guid rguidPersistenceSlot,
    uint dwId,
    out int pfShowTool
)
int QueryShowTool(
    [InAttribute] Guid% rguidPersistenceSlot, 
    [InAttribute] unsigned int dwId, 
    [OutAttribute] int% pfShowTool
)
function QueryShowTool(
    rguidPersistenceSlot : Guid, 
    dwId : uint, 
    pfShowTool : int
) : int

Parameters

  • rguidPersistenceSlot
    Type: System.Guid%

    [in] The GUID of the window.

  • pfShowTool
    Type: System.Int32%

    [out] Pointer to a Boolean value. Set to true if the tool window is Active. Otherwise set to false.

Return Value

Type: System.Int32

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

Permissions

See Also

Reference

IVsPackageDynamicToolOwnerEx Interface

IVsPackageDynamicToolOwnerEx Members

Microsoft.VisualStudio.Shell.Interop Namespace