Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

Cancel solution closing event

$
0
0
In the package I'm trying to build I'm registering to the "BeforeClosing" event in the following way:
        DTE dte = Package.GetGlobalService(typeof(DTE)) as DTE;
        dte.Events.SolutionEvents.BeforeClosing += SolutionEvents_BeforeClosing;
and the signature for this event handler looks like this:
        private void SolutionEvents_BeforeClosing()
        {
            //Check some stuff
            //Cancel the close operation
        }
Is it possible to cancel the closing of the solution from within the event handler?



Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>