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

SessionEndReasons

Synopsis

This enumeration specifies information for the Reason property of the SessionEndingEventArgs and SessionEndedEventArgs event arguments. It specifies whether the user who started the current application is logging off (Logoff) (in which case the system may continue to run) or whether the operating system is shutting down (SystemShutdown).

public enum SessionEndReasons {
            Logoff = 1,
            SystemShutdown = 2
}

Hierarchy

System.ObjectSystem.ValueTypeSystem.Enum(System.IComparable, System.IFormattable, System.IConvertible)SessionEndReasons

Returned By

SessionEndedEventArgs.Reason, SessionEndingEventArgs.Reason

Passed To

SessionEndedEventArgs.SessionEndedEventArgs(), SessionEndingEventArgs.SessionEndingEventArgs()

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