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)

Syntax

'宣言
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, _
    pfShowTool)
int QueryShowTool(
    ref Guid rguidPersistenceSlot,
    out int pfShowTool
)
int QueryShowTool(
    [InAttribute] Guid% rguidPersistenceSlot, 
    [OutAttribute] int% pfShowTool
)
function QueryShowTool(
    rguidPersistenceSlot : Guid, 
    pfShowTool : int
) : int

Parameters

Return Value

Type: System.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
);

Permissions

See Also

Reference

IVsPackageDynamicToolOwner Interface

IVsPackageDynamicToolOwner Members

Microsoft.VisualStudio.Shell.Interop Namespace