다음을 통해 공유


IVsPackage.QueryClose(Int32) Method

Definition

Enables a VSPackage that requires user intervention to abort the shutdown process.

public:
 int QueryClose([Runtime::InteropServices::Out] int % pfCanClose);
int QueryClose([Runtime::InteropServices::Out] int & pfCanClose);
public int QueryClose (out int pfCanClose);
abstract member QueryClose : int -> int
Public Function QueryClose (ByRef pfCanClose As Integer) As Integer

Parameters

pfCanClose
Int32

[out] Flag indicating whether the VSPackage can close. Is set to true if the VSPackage can close.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

This method returns true if the VSPackage can close. If false, the environment can then cancel the exit procedure.

This method is called by the IDE only during manual shutdowns. Automated shutdowns, such as when installing critical updates, call the get_CanClose method instead.

COM Signature

From vsshell.idl:

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

Applies to