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 leaseTime )
Function WriteMultiple(Of T) ( _ objects As T(), _ tx As ITransaction, _ leaseTime As Long _ ) As ILeaseContext(Of T)()
generic<typename T> array<ILeaseContext<T>^>^ WriteMultiple( array<T>^ objects, ITransaction^ tx, long long leaseTime )
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.
- leaseTime (Int64)
- The requested lease time, in milliseconds.
Return Value
An array of leases on successful write.
Exceptions
Exception | Condition |
---|---|
WriteMultipleException | The operation had a failure. |