Share via


PosPower.BatteryLowThreshold Property

2/27/2008

Gets or sets the threshold percentage at which the service object generates a StatusUpdateEvent event of StatusBatteryLow.

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

Syntax

'Declaration
Public Overridable Property BatteryLowThreshold As Integer
public virtual int BatteryLowThreshold { get; set; }
public:
virtual property int BatteryLowThreshold {
    int get ();
    void set (int value);
}
/** @property */
public int get_BatteryLowThreshold ()

/** @property */
public void set_BatteryLowThreshold (int value)
public function get BatteryLowThreshold () : int

public function set BatteryLowThreshold (value : int)

Remarks

The POS application sets BatteryLowThreshold to a value of 1 to 99, based on the threshold percentage at which it wishes to receive a StatusUpdateEvent event of StatusBatteryLow from the service object. A value of zero (0) indicates the device does not support battery capacity reporting or that the battery capacity reporting feature is disabled. If the CapVariableBatteryCriticallyLow property is false and the application tries to set BatteryCriticallyLowThreshold, 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