Click or drag to resize

DatabaseRunInTransaction Method

Runs the delegate within a transaction. If the delegate returns false, the transaction is rolled back.

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 1.4.1-b107
Syntax
C#
public bool RunInTransaction(
	RunInTransactionDelegate transactionDelegate
)

Parameters

transactionDelegate
Type: Couchbase.LiteRunInTransactionDelegate
The delegate to run within a transaction.

Return Value

Type: Boolean
True if the transaction was committed, otherwise false.
See Also