PowerStatus Class

 

Indicates current system power status information.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

System.Object
  System.Windows.Forms.PowerStatus

type PowerStatus = class end

NameDescription
System_CAPS_pubpropertyBatteryChargeStatus

Gets the current battery charge status.

System_CAPS_pubpropertyBatteryFullLifetime

Gets the reported full charge lifetime of the primary battery power source in seconds.

System_CAPS_pubpropertyBatteryLifePercent

Gets the approximate amount of full battery charge remaining.

System_CAPS_pubpropertyBatteryLifeRemaining

Gets the approximate number of seconds of battery time remaining.

System_CAPS_pubpropertyPowerLineStatus

Gets the current system power status.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(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 SystemInformation class to indicate current system power information.

The following example lists all properties of the PowerStatus class in a ListBox control and displays the current value of the associated property in a TextBox control when a list item selected.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 2.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: