Sets the transaction ID to use when calling Commit()()()() or Delete()()()().

Namespace: ININ.IceLib.Configuration
Assembly: ININ.IceLib.Configuration (in ININ.IceLib.Configuration.dll) Version: 0.0.0.0 (21.4.0.172)

Syntax

C#
public void SetTransactionId(
	int transactionId
)
Visual Basic
Public Sub SetTransactionId ( _
	transactionId As Integer _
)

Parameters

transactionId
Type: System..::..Int32
The transaction ID.

Remarks

Valid values can be obtained from a call to BeginTransaction()()()() or BeginTransactionAsync(EventHandler<(Of <<'(BeginTransactionCompletedEventArgs>)>>), Object). If the connected Session is disconnected before EndTransaction(Int32) or EndTransactionAsync(Int32, AsyncCompletedEventHandler, Object) is called, all transaction IDs will become invalid, and new ones will need to be obtained. Setting this value to NoTransactionId will clear the transaction ID.

Exceptions

ExceptionCondition
System..::..ArgumentOutOfRangeExceptiontransactionId is less than zero.

Version Information

Supported for IC Server version 2015 R1 and beyond.
For 4.0, supported for IC Server version 4.0 SU 5 and beyond.

See Also