Share via


TransactionControl Enumeration (POS for .NET v1.12 SDK Documentation)

2/27/2008

Enumerates the transaction mode.

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

Syntax

'Declaration
Public Enumeration TransactionControl
public enum TransactionControl
public enum class TransactionControl
public enum TransactionControl
public enum TransactionControl

Members

Member name Description
Normal Ends the transaction mode by executing the buffer operation.
Transaction Begins a transaction.

Remarks

If control is Transaction, then the transaction mode is entered. Subsequent calls to ReadValue, WriteValue, AddValue, SubtractValue, and CancelValue methods buffer the data until the TransactionAccess method is called with the control parameter set to Normal. It depends on the implementation if buffering occurs in the ElectronicValue R/W device or if buffering occurs 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 entire 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 the transaction mode. Any buffered print lines are also cleared.

See Also

Reference

Microsoft.PointOfService Namespace