Name
PowerModeChangedEventArgs
Synopsis
This class creates a custom System.EventArgs
object
for the PowerModeChangedEventHandler
delegate. It provides additional information to your event handler, identifying
the new power mode that the system has entered.
public class PowerModeChangedEventArgs : EventArgs { // Public Constructors public method PowerModeChangedEventArgs(PowerModes mode); // Public Instance Properties public field PowerModes Mode{get; } }
Hierarchy
System.Object→System.EventArgs→PowerModeChangedEventArgs
Passed To
PowerModeChangedEventHandler.{BeginInvoke()
, Invoke()}
Figure 25-1. The Microsoft.Win32 namespace
Get C# 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.