Same as a single update but for a group of entities sharing the same transaction (if any).

C# | Visual Basic | Visual C++ | J# |
T[] UpdateMultiple<T>( T[] objects, ITransaction tx, long[] leaseTimes )
Function UpdateMultiple(Of T) ( _ objects As T(), _ tx As ITransaction, _ leaseTimes As Long() _ ) As T()
generic<typename T> array<T>^ UpdateMultiple( array<T>^ objects, ITransaction^ tx, array<long long>^ leaseTimes )

- T
- Type of object to update.

- objects (array< T >[]()[])
- Objects with a SpaceID defined.
- tx (ITransaction)
- The transaction (if any) under which to work.
- leaseTimes (array< Int64 >[]()[])
- The requested lease times of the updated enries, in milliseconds; 0 means retain the original lease.

Previous value on successful update, null if object was written (not updated).

Exception | Condition |
---|---|
EntryNotInSpaceException | An entry with matching ID does not exist in space. |
OperationTimeoutException | Timeout expired (when using UpdateModifiers.UpdateOrWrite). |
UnusableEntryException | A serialized field of the object being read cannot be deserialized. |
TransactionException | Transaction error occured. |
UpdateMultiplePartialFailureException | Some of the entries failed to update (see exception's properties for more data). |
EntryVersionConflictException | Operation is rejected as a result of optimistic locking version conflict. |
InactiveSpaceException | The space is in backup mode and therefore is not active. |