다음을 통해 공유


IVsHierarchy.QueryClose Method

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 IVsHierarchy
Dim pfCanClose As Integer
Dim returnValue As Integer

returnValue = instance.QueryClose(pfCanClose)
int QueryClose(
    out int pfCanClose
)
int QueryClose(
    [OutAttribute] int% pfCanClose
)
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.

Remarks

COM Signature

From vsshell.idl:

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

Permissions

See Also

Reference

IVsHierarchy Interface

IVsHierarchy Members

Microsoft.VisualStudio.Shell.Interop Namespace