Dela via


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

'Declaration
Function get_CanClose ( _
    <OutAttribute> ByRef pfCanClose As Boolean _
) As Integer
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: Boolean%

    [out] Boolean value. true if the package does not have to block shutdown of the integrated development environment (IDE).

Return Value

Type: 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

Microsoft.VisualStudio.Shell.Interop Namespace