Share via


Scale.SalesPrice Property

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

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

Usage

'Usage
Dim scale1 As Scale

Dim returnValue As Decimal
returnValue = scale1.SalesPrice

Syntax

'Declaration
Public MustOverride ReadOnly Property SalesPrice() As Decimal
public abstract decimal SalesPrice {get;}
public: property virtual Decimal^ SalesPrice{
    Decimal^ get();
}
public abstract System.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 typically initialized to zero when the device is first enabled. It should then be 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.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

See Also

Reference

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