SystemEvents
Provides access to system event notifications. This class cannot be inherited.
using System;
using System.ComponentModel;
using System.Runtime.CompilerServices;
namespace Microsoft.Win32
{
[System.Runtime.CompilerServices.NullableContext(2)]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class SystemEvents
{
public static event EventHandler DisplaySettingsChanged {
add {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
remove {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
}
public static event EventHandler DisplaySettingsChanging {
add {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
remove {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
}
public static event EventHandler EventsThreadShutdown {
add {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
remove {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
}
public static event EventHandler InstalledFontsChanged {
add {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
remove {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
}
[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]
[Obsolete("The LowMemory event has been deprecated and is not supported.")]
public static event EventHandler LowMemory {
add {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
remove {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
}
public static event EventHandler PaletteChanged {
add {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
remove {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
}
public static event PowerModeChangedEventHandler PowerModeChanged {
add {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
remove {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
}
public static event SessionEndedEventHandler SessionEnded {
add {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
remove {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
}
public static event SessionEndingEventHandler SessionEnding {
add {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
remove {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
}
public static event SessionSwitchEventHandler SessionSwitch {
add {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
remove {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
}
public static event EventHandler TimeChanged {
add {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
remove {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
}
public static event TimerElapsedEventHandler TimerElapsed {
add {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
remove {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
}
public static event UserPreferenceChangedEventHandler UserPreferenceChanged {
add {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
remove {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
}
public static event UserPreferenceChangingEventHandler UserPreferenceChanging {
add {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
remove {
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
}
internal SystemEvents()
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
public static IntPtr CreateTimer(int interval)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
[System.Runtime.CompilerServices.NullableContext(0)]
public static void InvokeOnEventsThread(Delegate method)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
public static void KillTimer(IntPtr timerId)
{
throw new PlatformNotSupportedException(System.SR.PlatformNotSupported_SystemEvents);
}
}
}