次の方法で共有


IVsUIHierarchy.QueryClose Method (Int32%)

Determines whether the given hierarchy can be closed.

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

Syntax

'宣言
Function QueryClose ( _
    <OutAttribute> ByRef pfCanClose As Integer _
) As Integer
'使用
Dim instance As IVsUIHierarchy
Dim pfCanClose As Integer
Dim returnValue As Integer

returnValue = instance.QueryClose(pfCanClose)
int QueryClose(
    out int pfCanClose
)
int QueryClose(
    [OutAttribute] int% pfCanClose
)
abstract QueryClose : 
        pfCanClose:int byref -> int 
function QueryClose(
    pfCanClose : int
) : int

Parameters

  • pfCanClose
    Type: System.Int32%
    [out] If true, then the hierarchy can be closed. If false, then the hierarchy cannot be closed.

Return Value

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

Implements

IVsHierarchy.QueryClose(Int32%)

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsUIHierarchy::QueryClose(
   [out] BOOL *pfCanClose
);

.NET Framework Security

See Also

Reference

IVsUIHierarchy Interface

IVsUIHierarchy Members

QueryClose Overload

Microsoft.VisualStudio.Shell.Interop Namespace