Share via


ElectronicValueRW.TransactionAccess Method (POS for .NET v1.14 SDK Documentation)

3/2/2014

Enters or exits transaction mode.

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

Syntax

'Declaration
Public MustOverride Sub TransactionAccess ( _
    control As TransactionControl _
)
public abstract void TransactionAccess (
    TransactionControl control
)
public:
virtual void TransactionAccess (
    TransactionControl control
) abstract
public abstract void TransactionAccess (
    TransactionControl control
)
public abstract function TransactionAccess (
    control : TransactionControl
)

Parameters

  • control
    The transaction control, can be set to TransactionNormal

Remarks

If control is Transaction, then transaction mode is entered. Later calls to ReadValue, WriteValue, AddValue, SubtractValue, and CancelValue will buffer the data until TransactionAccess is called by using the control parameter set to Normal. It depends on the implementation if buffering is finished in the ElectronicValueRW device or buffering is finished within the service.

If control is Normal, then transaction mode is exited. If some requests were buffered by calls to the methods ReadValue, WriteValue, AddValue, SubtractValue and CancelValue, then the buffered requests will be executed.

The transaction requests are treated as one message. This method is performed synchronously if AsyncMode is false, and asynchronously if AsyncMode is true.

Calling the ClearOutput method cancels transaction mode. Any buffered print lines are also cleared.

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

ElectronicValueRW Class
ElectronicValueRW Members
Microsoft.PointOfService Namespace