public static class DesktopPowerEvents Power events for hosts and platforms without a provider.
Methods
Unavailable
public static IDesktopPowerEvents Unavailable(PlatformUnavailableReason reason) Creates power events that report every read unavailable for reason.
Exceptions
ArgumentOutOfRangeExceptionreasonis not defined.
Remarks
IDesktopPowerEvents.WatchAsync reports that value once and then waits for cancellation or disposal. Nothing throws except caller cancellation and use after disposal.