GigaSpaces XAP.NET Documentation
Write<(Of <(T>)>) Method (obj, tx, leaseTime, timeout, modifiers)
Class LibraryGigaSpaces.CoreISpaceProxyWrite<(Of <(T>)>)(T, ITransaction, Int64, Int64, WriteModifiers)
Writes a new object to the space.
Declaration Syntax
C#Visual BasicVisual C++J#
ILeaseContext<T> Write<T>(
	T obj,
	ITransaction tx,
	long leaseTime,
	long timeout,
	WriteModifiers modifiers
Function Write(Of T) ( _
	obj As T, _
	tx As ITransaction, _
	leaseTime As Long, _
	timeout As Long, _
	modifiers As WriteModifiers _
) As ILeaseContext(Of T)
generic<typename T>
ILeaseContext<T>^ Write(
	T obj, 
	ITransaction^ tx, 
	long long leaseTime, 
	long long timeout, 
	WriteModifiers modifiers
J# supports the use of generic APIs, but not the declaration of new ones.
Generic Template Parameters
Type of object to write.
obj (T)
The object to write.
tx (ITransaction)
The transaction (if any) under which to work.
leaseTime (Int64)
The requested lease time, in milliseconds.
timeout (Int64)
How long the client is willing to wait for a transactionally proper matching entry.
modifiers (WriteModifiers)
Operation modifiers.
Return Value
A lease handle on successful write.
EntryAlreadyInSpaceExceptionAn entry with matching ID exists in space (WriteModifiers.WriteOnly).
EntryNotInSpaceExceptionAn entry with matching ID does not exist in space (WriteModifiers.UpdateOnly).
OperationTimeoutExceptionTimeout expired after waiting for a transactional proper matching entry (when using WriteModifiers.UpdateOrWrite).
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: (