GigaSpaces XAP.NET Documentation
Update<(Of <(T>)>) Method (obj, tx)
Class LibraryGigaSpaces.CoreISpaceProxyUpdate<(Of <(T>)>)(T, ITransaction)
Update an object with a SpaceID, blocking if locked under another transaction.
Declaration Syntax
C#Visual BasicVisual C++J#
[ObsoleteAttribute("Use Write() with the appropriate WriteModifiers instead.")]
T Update<T>(
	T obj,
	ITransaction tx
<ObsoleteAttribute("Use Write() with the appropriate WriteModifiers instead.")> _
Function Update(Of T) ( _
	obj As T, _
	tx As ITransaction _
) As T
[ObsoleteAttribute(L"Use Write() with the appropriate WriteModifiers instead.")]
generic<typename T>
T Update(
	T obj, 
	ITransaction^ tx
J# supports the use of generic APIs, but not the declaration of new ones.
Generic Template Parameters
Type of object to update.
obj (T)
An object with a SpaceID defined.
tx (ITransaction)
The transaction (if any) under which to work.
Return Value
Previous value on successful update, null if object was written (not updated).
EntryNotInSpaceExceptionAn entry with matching ID does not exist in space.
OperationTimeoutExceptionTimeout expired after waiting for a transactional proper matching entry (when using UpdateModifiers.UpdateOrWrite).
UnusableEntryExceptionA serialized field of the object being read cannot be deserialized.
TransactionExceptionTransaction error occured.
EntryVersionConflictExceptionOperation is rejected as a result of optimistic locking version conflict.
InactiveSpaceExceptionThe space is in backup mode and therefore is not active.

Assembly: GigaSpaces.Core (Module: GigaSpaces.Core) Version: (