Share via


PinPadBase.Amount Property (POS for .NET v1.12 SDK Documentation)

2/27/2008

Holds the amount of the current EFT transaction.

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

Syntax

'Declaration
Public Overrides Property Amount As Decimal
public override decimal Amount { get; set; }
public:
virtual property Decimal Amount {
    Decimal get () override;
    void set (Decimal value) override;
}
/** @property */
public Decimal get_Amount ()

/** @property */
public void set_Amount (Decimal value)
public override function get Amount () : decimal

public override function set Amount (value : decimal)

Remarks

The PinPadBase class verifies that the PIN pad device has been opened, then retrieves or sets the value of PinPadProperties.Amount.

Accessing Amount may cause a PosControlException to be thrown with the following ErrorCode:

Value

Meaning

Illegal

The BeginEftTransaction method was called before setting this property: Amount can’t be changed while in EFT Transaction Mode.

Amount is initialized to 0 (zero) by the PinPadProperties class.

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

PinPadBase Class
PinPadBase Members
Microsoft.PointOfService.BaseServiceObjects Namespace
PinPad.Amount Property