StartTransaction Method
- Last UpdatedNov 06, 2025
- 1 minute read
The StartTransaction() method begins a transaction on the Middleware Server that will wrap any subsequent MES API calls made on the current client thread, until either CommitTransaction or AbortTransaction is called on the same thread. Or, if the transaction takes longer than the configured time (configured using the Middleware Configuration Editor), it will be aborted automatically by the Middleware Server.
When using explicit transaction control, the MES middleware's transaction control and deadlock retry logic is disabled. The deadlock or other error message is returned to the client and the client must then resubmit the call.
'Declaration
Public Shared Sub StartTransaction()
'Usage
Transaction.StartTransaction()
public static void StartTransaction()