Microsoft.Win32.SessionEndingEventArgs Class

Provides data for the SystemEvents.SessionEnding event.

See Also: SessionEndingEventArgs Members


public class SessionEndingEventArgs : EventArgs


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.


Namespace: Microsoft.Win32
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0,,