O'Reilly logo

C# in a Nutshell by Peter Drayton, Ted Neward, Ben Albahari

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.ObjectSystem.EventArgsPowerModeChangedEventArgs

Passed To

PowerModeChangedEventHandler.{BeginInvoke(), Invoke()}

The Microsoft.Win32 namespace

Figure 25-1. The Microsoft.Win32 namespace

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required