IVsFireSolutionEvents.FireOnQueryCloseProject(IVsHierarchy, Int32) Method

Definition

Fires a solution event, OnQueryCloseProject(IVsHierarchy, Int32, Int32), indicating a query about closing the project.

C++/CX
public:
 int FireOnQueryCloseProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, int fRemoving);

Parameters

pHierarchy
IVsHierarchy

[in] Pointer to the IVsHierarchy interface of the project being closed.

fRemoving
Int32

[in] Boolean. Set to true if the project is being removed from the solution before the solution is closed. Set to false if the project is being removed from the solution while the solution is being closed.

Returns

Returns S_FALSE if the callee vetoes the operation. Otherwise, returns S_OK.

Remarks

COM Signature

From vsshell.idl:

cpp#
HRESULT IVsFireSolutionEvents::FireOnQueryCloseProject(  
   [in] IVsHierarchy *pHierarchy,   
   [in] BOOL fRemoving  
);  

Applies to

Product Versions
Visual Studio SDK 2015, 2017, 2019, 2022