Share via


PosPower.BatteryCapacityRemaining Property

2/27/2008

Gets a value between 0 and 100 that represents the percentage of remaining battery capacity.

Namespace: Microsoft.PointOfService
Assembly: Microsoft.PointOfService (in microsoft.pointofservice.dll)

Syntax

'Declaration
Public Overridable ReadOnly Property BatteryCapacityRemaining As Integer
public virtual int BatteryCapacityRemaining { get; }
public:
virtual property int BatteryCapacityRemaining {
    int get ();
}
/** @property */
public int get_BatteryCapacityRemaining ()
public function get BatteryCapacityRemaining () : int

Remarks

BatteryCapacityRemaining is set by the service object during initialization and when the remaining battery capacity changes.  Whenever the service object sets BatteryCapacityRemaining, it generates a  StatusUpdateEvent event of StatusBatteryCapacityRemaining

If the CapBatteryCapacityRemaining property is false and the application tries to read BatteryCapacityRemaining, the service object throws an exception.

Thread Safety

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

See Also

Reference

PosPower Class
PosPower Members
Microsoft.PointOfService Namespace