Partager via


IVsPackageDynamicToolOwnerEx.QueryShowTool Method

Enables the VSPackage to control whether to show or hide the tool window. The shell calls this method when the user switches views or contexts, for example Design, Debugging, Full Screen.

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
int QueryShowTool(
    ref Guid rguidPersistenceSlot,
    uint dwId,
    out int pfShowTool
)
int QueryShowTool(
    [InAttribute] Guid% rguidPersistenceSlot, 
    [InAttribute] unsigned int dwId, 
    [OutAttribute] int% pfShowTool
)
abstract QueryShowTool : 
        rguidPersistenceSlot:Guid byref * 
        dwId:uint32 * 
        pfShowTool:int byref -> int
function QueryShowTool(
    rguidPersistenceSlot : Guid, 
    dwId : uint, 
    pfShowTool : int
) : int

Parameters

  • rguidPersistenceSlot
    Type: Guid%

    [in] The GUID of the window.

  • dwId
    Type: UInt32

    [in] The instance ID of the tool window.

  • pfShowTool
    Type: Int32%

    [out] true if the tool window is to be displayed, otherwise false.

Return Value

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

.NET Framework Security

See Also

Reference

IVsPackageDynamicToolOwnerEx Interface

Microsoft.VisualStudio.Shell.Interop Namespace