Click or drag to resize

IDatabaseInBatch Method

Runs the given batch of operations as an atomic unit

Namespace:  Couchbase.Lite
Assembly:  Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0033
Syntax
C#
bool InBatch(
	Func<bool> a
)

Parameters

a
Type: SystemFuncBoolean
The FuncTResult of Boolean containing the operations. This function should return true on success and false on failure which will cause all the operations to be abandoned.

Return Value

Type: Boolean
The return value of a
Exceptions
ExceptionCondition
ThreadSafetyViolationExceptionThrown if an invalid access attempt is made
See Also