IVsSolutionEvents3.OnBeforeCloseProject(IVsHierarchy, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
);