Export (0) Print
Expand All

IVsSolutionEvents2.OnQueryUnloadProject Method

Queries listening clients as to whether the project can be unloaded.

Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in microsoft.visualstudio.shell.interop.dll)

int OnQueryUnloadProject (
	[InAttribute] IVsHierarchy pRealHierarchy,
	[InAttribute] out int pfCancel
)
int OnQueryUnloadProject (
	/** @attribute InAttribute() */ IVsHierarchy pRealHierarchy, 
	/** @attribute InAttribute() */ /** @attribute OutAttribute() */ /** @ref */ int pfCancel
)
JScript does not support passing value-type arguments by reference.

Parameters

pRealHierarchy

[in] Pointer to the IVsHierarchy interface of the project to be unloaded.

pfCancel

[out] true if the client vetoed unloading the project. false if the client approved unloading the project.

Return Value

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsshell.idl:

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

Community Additions

ADD
Show:
© 2014 Microsoft