Share via


IVsSolutionEvents3.OnQueryUnloadProject(IVsHierarchy, Int32) Method

Definition

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.

Implements

Remarks

COM Signature

From vsshell.idl:

HRESULT IVsSolutionEvents3::OnQueryUnloadProject(  
   [in] IVsHierarchy *pRealHierarchy,  
   [in,out] BOOL *pfCancel  
);  

Applies to