IVsPackage2::get_CanClose Method (Boolean)

 

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)

int get_CanClose(
	[OutAttribute] bool% pfCanClose
)

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.

From vsshell.idl:

HRESULT get_CanClose(
    [out, retval] VARIANT_BOOL* pfCanClose
);
Return to top
Show: