Name
SessionEndingEventHandler
Synopsis
This delegate defines the signature that an event handler must use
to receive the SystemEvents.SessionEnding
event. This event
is raised when the user has chosen to log off or shutdown the system. It occurs
before the SystemEvents.SessionEnded
event. SessionEndingEventArgs
provides a Cancel
property, which you can set in the event handler to cancel the pending shutdown.
Public Delegate Sub SessionEndingEventHandler(
ByVal sender As Object,
ByVal e As SessionEndingEventArgs)
Associated Events
SystemEvents.SessionEnding()
Get VB.NET Core Classes in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.