IVsSolutionEvents.OnQueryUnloadProject(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.
Queries listening clients as to whether the project can be unloaded.
public:
int OnQueryUnloadProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pRealHierarchy, [Runtime::InteropServices::Out] int % pfCancel);
int OnQueryUnloadProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pRealHierarchy, [Runtime::InteropServices::Out] int & pfCancel);
public int OnQueryUnloadProject (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pRealHierarchy, out int pfCancel);
abstract member OnQueryUnloadProject : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * int -> int
Public Function OnQueryUnloadProject (pRealHierarchy As IVsHierarchy, ByRef pfCancel As Integer) As Integer
Parameters
- pRealHierarchy
- IVsHierarchy
[in] Pointer to the IVsHierarchy interface of the project to be unloaded.
- pfCancel
- Int32
[out] true
if the client vetoed unloading the project. false
if the client approved unloading the project.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Remarks
COM Signature
From vsshell.idl:
HRESULT IVsSolutionEvents::OnQueryUnloadProject(
[in] IVsHierarchy *pRealHierarchy,
[in,out] BOOL *pfCancel
);