Share via


Scale.SalesPrice Property (POS for .NET v1.12 SDK Documentation)

2/27/2008

Holds the sales price read from a price-calculating scale.

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

Syntax

'Declaration
Public MustOverride ReadOnly Property SalesPrice As Decimal
public abstract decimal SalesPrice { get; }
public:
virtual property Decimal SalesPrice {
    Decimal get () abstract;
}
/** @property */
public abstract Decimal get_SalesPrice ()
public abstract function get SalesPrice () : decimal

Remarks

To compute this value, price-calculating scales multiply the UnitPrice property by the weight.

SalesPrice is set by the control before the ReadWeight method returns (in synchronous use) or the DataEvent is delivered by the control (in asynchronous use).

If CapPriceCalculating is false, the device is not a price-calculating scale and SalesPrice is always zero.

SalesPrice is updated by the service object, based on the capabilities of the device.

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

Scale Class
Scale Members
Microsoft.PointOfService Namespace
Scale.ReadWeight Method
WeightUnit
Scale.CapPriceCalculating Property
UnitPrice