GigaSpaces XAP.NET Documentation
AddAndGet<(Of <(<'T>)>)> Method (spaceProxy, idQuery, path, delta, transaction, modifiers, timeout)
Class LibraryGigaSpaces.Core.Change.ExtensionsChangeExtensionAddAndGet<(Of <<'(T>)>>)(ISpaceProxy, IdQuery<(Of <<'(T>)>>), String, Double, ITransaction, ChangeModifiers, TimeSpan)
Atomically adds the given value to the current value of an entry's property.
Declaration Syntax
C#Visual BasicVisual C++J#
public static Nullable<double> AddAndGet<T>(
	this ISpaceProxy spaceProxy,
	IdQuery<T> idQuery,
	string path,
	double delta,
	ITransaction transaction,
	ChangeModifiers modifiers,
	TimeSpan timeout
<ExtensionAttribute> _
Public Shared Function AddAndGet(Of T) ( _
	spaceProxy As ISpaceProxy, _
	idQuery As IdQuery(Of T), _
	path As String, _
	delta As Double, _
	transaction As ITransaction, _
	modifiers As ChangeModifiers, _
	timeout As TimeSpan _
) As Nullable(Of Double)
generic<typename T>
static Nullable<double> AddAndGet(
	ISpaceProxy^ spaceProxy, 
	IdQuery<T>^ idQuery, 
	String^ path, 
	double delta, 
	ITransaction^ transaction, 
	ChangeModifiers modifiers, 
	TimeSpan timeout
J# supports the use of generic APIs, but not the declaration of new ones.
Generic Template Parameters
the type of the entry.
spaceProxy (ISpaceProxy)
the proxy to the space which stores the entry.
idQuery (IdQuery<(Of <(<'T>)>)>)
id the query which is used to locate the entry.
path (String)
the path to the number property which is being modified.
delta (Double)
the value to add.
transaction (ITransaction)
the transaction to use (null if no transaction is used).
modifiers (ChangeModifiers)
the change modifiers to use.
timeout (TimeSpan)
time to wait if the entry is locked under a transaction.
Return Value
the updated value, null of no matching entry found for the given id query. Therefore you must use the primitive nullable types as the result value (e.g. int?/long?) otherwise you may get an exception if no entry was found.

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