Share via


IVsFireSolutionEvents.FireOnQueryCloseProject(IVsHierarchy, Int32) Method

Definition

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

public:
 int FireOnQueryCloseProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, int fRemoving);
public:
 int FireOnQueryCloseProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, int fRemoving);
int FireOnQueryCloseProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHierarchy, int fRemoving);
public int FireOnQueryCloseProject (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHierarchy, int fRemoving);
abstract member FireOnQueryCloseProject : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * int -> int
Public Function FireOnQueryCloseProject (pHierarchy As IVsHierarchy, fRemoving As Integer) As Integer

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:

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

Applies to