<PackageReference Include="Microsoft.Win32.SystemEvents" Version="10.0.0-preview.6.25358.103" />

SessionEndingEventArgs

Provides data for the SessionEnding event.
using System; namespace Microsoft.Win32 { public class SessionEndingEventArgs : EventArgs { public bool Cancel { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents); } set { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents); } } public SessionEndReasons Reason { get { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents); } } public SessionEndingEventArgs(SessionEndReasons reason) { throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents); } } }