Share via


IVsFireSolutionEvents.FireOnBeforeCloseProject(IVsHierarchy, Int32) Method

Definition

Fires a solution event, OnBeforeCloseProject(IVsHierarchy, Int32), before closing a project.

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

Parameters

pHierarchy
IVsHierarchy

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

fRemoved
Int32

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

Returns

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

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsFireSolutionEvents::FireOnBeforeCloseProject(  
   [in] IVsHierarchy *pHierarchy,   
   [in] BOOL fRemoved  
);  

Applies to