Share via


FiscalPrinter.SetCurrency Method (POS for .NET v1.14 SDK Documentation)

3/2/2014

Changes to a new currency (for example, euro).

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

Syntax

'Declaration
Public MustOverride Sub SetCurrency ( _
    newCurrency As FiscalCurrency _
)
public abstract void SetCurrency (
    FiscalCurrency newCurrency
)
public:
virtual void SetCurrency (
    FiscalCurrency newCurrency
) abstract
public abstract void SetCurrency (
    FiscalCurrency newCurrency
)
public abstract function SetCurrency (
    newCurrency : FiscalCurrency
)

Parameters

  • newCurrency
    The new currency.

Remarks

This method is only supported if CapSetCurrency is true and can only be called while DayOpened is false. The actual currency is kept in the ActualCurrency property.

SetCurrency may throw a PosControlException with the following ErrorCode:

Value

Description

Illegal

One of the following errors occurred:

  • The fiscal printer does not support this method (see the CapSetCurrency property).

  • The fiscal printer has already begun the fiscal day (see the DayOpened property).

  • The specified newCurrency value is not valid.

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

FiscalPrinter Class
FiscalPrinter Members
Microsoft.PointOfService Namespace
ActualCurrency
CapSetCurrency
DayOpened