_dispSolutionEvents_QueryCloseSolutionEventHandler Delegate

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Microsoft Internal Use Only.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)


<ComVisibleAttribute(False)> _
Public Delegate Sub _dispSolutionEvents_QueryCloseSolutionEventHandler ( _
    <OutAttribute> ByRef fCancel As Boolean _
public delegate void _dispSolutionEvents_QueryCloseSolutionEventHandler(
    out bool fCancel
public delegate void _dispSolutionEvents_QueryCloseSolutionEventHandler(
    [InAttribute] [OutAttribute] bool% fCancel
type _dispSolutionEvents_QueryCloseSolutionEventHandler = 
    delegate of 
        fCancel:bool byref -> unit
JScript does not support delegates.


  • fCancel
    Type: System.Boolean%
    Whether or not the close was cancelled.


The SolutionEvents object can go out of scope and be garbage collected before the solution is closed. To retain a reference to this object, declare a private variable in the class in which you implement the solution event handlers.

See Also


EnvDTE Namespace