Microsoft.Win32.SessionEndingEventArgs Class

Provides data for the SystemEvents.SessionEnding event.

See Also: SessionEndingEventArgs Members

Syntax

public class SessionEndingEventArgs : EventArgs

Remarks

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.

Requirements

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