NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

SystemEvents.AddOnSessionEnding

Adds an event handler that will be called when the current logon session is ending. You may cancel this by setting Cancel in the event args to true. If you do not cancel, all applications will be closed and the user will be logged off. Generally, a SessionEnded event will occur after this, but it is not guaranteed.

[Visual Basic]
Public Shared Sub AddOnSessionEnding( _
   ByVal handler As SessionEndingEventHandler _
)
[C#]
public static void AddOnSessionEnding(
   SessionEndingEventHandler handler
);
[C++]
public: static void AddOnSessionEnding(
   SessionEndingEventHandler* handler
);
[JScript]
public static function AddOnSessionEnding(
   handler : SessionEndingEventHandler
);

Parameters

handler
The event handler to be added.

See Also

SystemEvents Class | SystemEvents Members | System.Core Namespace | TBD