Share via


Battery.OnCharger Method

Returns a value that indicates whether the hardware is connected to a battery charger.

Namespace: Microsoft.SPOT.Hardware
Assembly: Microsoft.SPOT.Hardware (in microsoft.spot.hardware.dll)

Syntax

[MethodImplAttribute]
public static bool OnCharger ()

Return Value

true if the hardware is connected to a battery charger; otherwise, false.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

Battery Class
Battery Members
Microsoft.SPOT.Hardware Namespace