Same as a single write but for a group of entities sharing the same transaction (if any).
Declaration Syntax
C# | Visual Basic | Visual C++ | J# |
ILeaseContext<T>[] WriteMultiple<T>( T[] objects, ITransaction tx, long[] leasesTime, WriteModifiers modifiers )
Function WriteMultiple(Of T) ( _ objects As T(), _ tx As ITransaction, _ leasesTime As Long(), _ modifiers As WriteModifiers _ ) As ILeaseContext(Of T)()
generic<typename T> array<ILeaseContext<T>^>^ WriteMultiple( array<T>^ objects, ITransaction^ tx, array<long long>^ leasesTime, WriteModifiers modifiers )
Generic Template Parameters
- T
- Type of object to write.
Parameters
- objects (array<T>[]()[][])
- The objects to write.
- tx (ITransaction)
- The transaction (if any) under which to work.
- leasesTime (array<Int64>[]()[][])
- The requested lease time per object, in milliseconds.
- modifiers (WriteModifiers)
- Operation modifiers.
Return Value
An array of leases on successful write.
Exceptions
Exception | Condition |
---|---|
WriteMultipleException | The operation had a failure. |