Indicates current system power status information.
| C# | Visual Basic |
public class PowerStatus
Public Class PowerStatus
| All Members | Methods | Properties | |||
| Icon | Member | Description |
|---|---|---|
| BatteryChargeStatus |
Gets the current battery charge status.
| |
| BatteryFullLifeTime |
Gets the reported full charge lifetime of the primary battery power source in seconds.
| |
| BatteryLifePercent |
Gets the approximate percentage of full battery time remaining.
| |
| BatteryLifeRemaining |
Gets the approximate number of seconds of battery time remaining.
| |
| Equals(Object) | (Inherited from Object.) | |
| Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetHashCode()()()() |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| PowerLineStatus |
AC power status.
| |
| ToString()()()() | (Inherited from Object.) |
The PowerStatus class represents information about the current AC line power status, battery charging status, and battery charge status.
This class is used by the PowerStatus property of the SystemInformationHelper class to indicate current system power information.
| Object | |
| PowerStatus | |