O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

SessionEndingEventHandler

Synopsis

This delegate defines the signature that an event handler must use in order to receive the SystemEvents.SessionEnding event. This event is raised when the user has chosen to log off or shutdown the system. It occurs before the SystemEvents.SessionEnded event. SessionEndingEventArgs provides a Cancel property, which you can set in the event handler to cancel the pending shutdown.

public delegate void SessionEndingEventHandler(
        object sender, SessionEndingEventArgs e);  

Associated Events

SystemEvents.SessionEnding()

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required