public static class DesktopInhibition Creates idle-power inhibition for a host or platform without a provider.
Methods
Unavailable
public static IDesktopInhibition Unavailable(PlatformUnavailableReason reason) Creates inhibition that supports no effects and reports every acquisition unavailable for reason.
Exceptions
ArgumentOutOfRangeExceptionreasonis not defined.
Remarks
Acquisition validates its arguments as a provider does, so a call that is wrong on one platform is wrong on every platform; otherwise nothing throws except caller cancellation.