Export (0) Print
Expand All

IVsSolutionEvents.OnQueryCloseSolution Method

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

'Declaration
Function OnQueryCloseSolution ( _
	<InAttribute> pUnkReserved As Object, _
	<InAttribute> <OutAttribute> ByRef pfCancel As Integer _
) As Integer
'Usage
Dim instance As IVsSolutionEvents
Dim pUnkReserved As Object
Dim pfCancel As Integer
Dim returnValue As Integer

returnValue = instance.OnQueryCloseSolution(pUnkReserved, pfCancel)
int OnQueryCloseSolution (
	/** @attribute InAttribute() */ Object pUnkReserved, 
	/** @attribute InAttribute() */ /** @attribute OutAttribute() */ /** @ref */ int pfCancel
)
JScript does not support passing value-type arguments by reference.

Parameters

pUnkReserved

[in] Reserved for future use.

pfCancel

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

Return Value

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
);

Community Additions

ADD
Show:
© 2014 Microsoft