Share via


OnCharger Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

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

'Declaration
Public Shared Function OnCharger As Boolean
public static bool OnCharger()
public:
static bool OnCharger()
static member OnCharger : unit -> bool 
public static function OnCharger() : boolean

Return Value

Type: System. . :: . .Boolean
true if the hardware is connected to a battery charger; otherwise, false.

.NET Framework Security

See Also

Reference

Battery Class

Microsoft.SPOT.Hardware Namespace