Share via


PosPower.BatteryCriticallyLowThreshold Property

2/27/2008

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

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

Syntax

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

/** @property */
public void set_BatteryCriticallyLowThreshold (int value)
public function get BatteryCriticallyLowThreshold () : int

public function set BatteryCriticallyLowThreshold (value : int)

Remarks

The POS application sets BatteryCriticallyLowThreshold to a value of 1 to 99, based on the threshold percentage at which it wants to receive a StatusUpdateEvent event of StatusBatteryCriticallyLow 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