Update an object with a SpaceID, blocking if locked under another transaction.

C# | Visual Basic | Visual C++ | J# |
T Update<T>( T obj, ITransaction tx )
Function Update(Of T) ( _ obj As T, _ tx As ITransaction _ ) As T
generic<typename T> T Update( T obj, ITransaction^ tx )

- T
- Type of object to update.

- obj (T)
- An object with a SpaceID defined.
- tx (ITransaction)
- The transaction (if any) under which to work.

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. |
EntryVersionConflictException | Operation is rejected as a result of optimistic locking version conflict. |
InactiveSpaceException | The space is in backup mode and therefore is not active. |