Provides data for the SystemEvents.SessionEnding event.
See Also: SessionEndingEventArgs Members
A SystemEvents.SessionEnding event is raised when the user is trying to log off or shut the system down.
This SystemEvents.SessionEnding event can sometimes be canceled. Setting the SessionEndingEventArgs.Cancel property of a Microsoft.Win32.SessionEndingEventArgs to false will request that the session continue instead of ending. Making such a request provides no guarantee that the session will not end.