This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com . Thanks!
SystemEvents SessionEnding Event
[To be supplied.]
The following declaration shows the syntax for a method that handles the SessionEnding event.
[Visual Basic]
Private Sub SystemEventsName_ SessionEnding( _
ByVal sender As Object, _
ByVal e As SessionEndingEventArgs _
)
[C#]
private void SystemEventsName_ SessionEnding(
object sender ,
SessionEndingEventArgs e
);
[C++]
private: void SystemEventsName_ SessionEnding(
Object* sender ,
SessionEndingEventArgs* e
);
[JScript]
private SystemEventsName_ SessionEnding(
sender : Object,
e : SessionEndingEventArgs
);
Parameters
sender
The source of the event.
e
A SessionEndingEventArgs that contains the event data. The following SessionEndingEventArgs properties provide information specific to this event.
Property
Description
Cancel
You may set this property to true to cancel the user request to end the session. This is no guarantee that the session won't end, it is just a request to keep it running.
Reason
The reason for this event.
See Also
SystemEvents Class | SystemEvents MembersTopic | System.Core Namespace