IVsPackageDynamicToolOwner.QueryShowTool Method

Allows the package to use dynamic logic to control whether the ToolWindow should be shown or hidden.

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


Function QueryShowTool ( _
    ByRef rguidPersistenceSlot As Guid, _
    <OutAttribute> ByRef pfShowTool As Integer _
) As Integer
‘사용 방법
Dim instance As IVsPackageDynamicToolOwner
Dim rguidPersistenceSlot As Guid
Dim pfShowTool As Integer
Dim returnValue As Integer

returnValue = instance.QueryShowTool(rguidPersistenceSlot, _
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


Return Value

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


COM Signature

From vsshell.idl:

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

.NET Framework Security

See Also


IVsPackageDynamicToolOwner Interface

IVsPackageDynamicToolOwner Members

Microsoft.VisualStudio.Shell.Interop Namespace