IVsPackage2.get_CanClose Method

Specifies whether a package can be closed.

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

Syntax

‘선언
Function get_CanClose ( _
    <OutAttribute> ByRef pfCanClose As Boolean _
) As Integer
‘사용 방법
Dim instance As IVsPackage2
Dim pfCanClose As Boolean
Dim returnValue As Integer

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

Parameters

  • pfCanClose
    Type: System.Boolean%
    [out] Boolean value. true if the package does not have to block shutdown of the integrated development environment (IDE).

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 get_CanClose(
    [out, retval] VARIANT_BOOL* pfCanClose
);

.NET Framework Security

See Also

Reference

IVsPackage2 Interface

IVsPackage2 Members

Microsoft.VisualStudio.Shell.Interop Namespace