IVsFireSolutionEvents.FireOnQueryCloseProject(IVsHierarchy, Int32) Method
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.
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
- 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 S_FALSE if the callee vetoes the operation. Otherwise, returns S_OK.
From vsshell.idl:
HRESULT IVsFireSolutionEvents::FireOnQueryCloseProject(
[in] IVsHierarchy *pHierarchy,
[in] BOOL fRemoving
);
Product | Versions |
---|---|
Visual Studio SDK | 2015, 2017, 2019, 2022 |