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
'Dichiarazione
Function get_CanClose ( _
<OutAttribute> ByRef pfCanClose As Boolean _
) As Integer
'Utilizzo
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
)
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
);
Permissions
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.