Export (0) Print
Expand All

SessionEndingEventArgs Class

Provides data for the SessionEnding event.

For a list of all members of this type, see SessionEndingEventArgs Members.

System.Object
   System.EventArgs
      Microsoft.Win32.SessionEndingEventArgs

[Visual Basic]
Public Class SessionEndingEventArgs
   Inherits EventArgs
[C#]
public class SessionEndingEventArgs : EventArgs
[C++]
public __gc class SessionEndingEventArgs : public EventArgs
[JScript]
public class SessionEndingEventArgs extends EventArgs

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Remarks

A SessionEnding event is raised when the user is trying to log off or shut the system down.

This is a cancellable event and setting the Cancel property to false will request that the session continues to run. Making such a request provides no guarantee that the session will not end.

Requirements

Namespace: Microsoft.Win32

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: System (in System.dll)

See Also

SessionEndingEventArgs Members | Microsoft.Win32 Namespace | SystemEvents

Show:
© 2014 Microsoft