OnQueryCloseSolution Method
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer

IVsSolutionEvents.OnQueryCloseSolution Method

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

function OnQueryCloseSolution(
	pUnkReserved : Object, 
	pfCancel : int
) : int


Type: System.Object

[in] Reserved for future use.

Type: System.Int32%

[out] true if the client vetoed closing the solution. false if the client approved closing the solution.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

COM Signature

From vsshell.idl:

HRESULT IVsSolutionEvents::OnQueryCloseSolution(
   [in] IUnknown *pUnkReserved,
   [in,out] BOOL *pfCancel

© 2015 Microsoft