Share via


IVsSolutionEvents3.OnBeforeCloseProject(IVsHierarchy, Int32) Method

Definition

Notifies listening clients that the project is about to be closed.

public:
 int OnBeforeCloseProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, int fRemoved);
public:
 int OnBeforeCloseProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHierarchy, int fRemoved);
int OnBeforeCloseProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHierarchy, int fRemoved);
public int OnBeforeCloseProject (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHierarchy, int fRemoved);
abstract member OnBeforeCloseProject : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * int -> int
Public Function OnBeforeCloseProject (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] true if the project was removed from the solution before the solution was closed. 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.

Implements

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSolutionEvents3::OnBeforeCloseProject(  
   [in] IVsHierarchy *pHierarchy,  
   [in] BOOL fRemoved  
);  

Applies to