PowerStatus.PowerLineStatus Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the current system power status.

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

public PowerLineStatus PowerLineStatus { get; }

Property Value

Type: System.Windows.Forms.PowerLineStatus

One of the PowerLineStatus values indicating the current system power status.

This property indicates whether the system power is online, or that the system power status is unknown.

.NET Framework
Available since 2.0
Return to top