Share via


IVsPackageDynamicToolOwner.QueryShowTool Method

Allows the package to control whether the tool window should be shown or hidden. This method is called by the shell when the user switches to a different window view or context, for example Design, Debugging, Full Screen, etc.

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

Syntax

'Declaration
Function QueryShowTool ( _
    ByRef rguidPersistenceSlot As Guid, _
    <OutAttribute> ByRef pfShowTool As Integer _
) As Integer
int QueryShowTool(
    ref Guid rguidPersistenceSlot,
    out int pfShowTool
)
int QueryShowTool(
    [InAttribute] Guid% rguidPersistenceSlot, 
    [OutAttribute] int% pfShowTool
)
abstract QueryShowTool : 
        rguidPersistenceSlot:Guid byref * 
        pfShowTool:int byref -> int
function QueryShowTool(
    rguidPersistenceSlot : Guid, 
    pfShowTool : int
) : int

Parameters

  • rguidPersistenceSlot
    Type: Guid%

    [in] The GUID of the window.

  • pfShowTool
    Type: Int32%

    [out] true to show the window, otherwise false.

Return Value

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsPackageDynamicToolOwner::QueryShowTool(
   [in] REFGUID rguidPersistenceSlot, 
   [out] BOOL *pfShowTool
);

.NET Framework Security

See Also

Reference

IVsPackageDynamicToolOwner Interface

Microsoft.VisualStudio.Shell.Interop Namespace