GigaSpaces XAP.NET Documentation
AddAndGet<(Of <(T>)>) Method (spaceProxy, idQuery, path, delta)
Class LibraryGigaSpaces.Core.Change.ExtensionsChangeExtensionAddAndGet<(Of <(T>)>)(ISpaceProxy, IdQuery<(Of <(T>)>), String, Double)
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>(
	ISpaceProxy spaceProxy,
	IdQuery<T> idQuery,
	string path,
	double delta
)
Public Shared Function AddAndGet(Of T) ( _
	spaceProxy As ISpaceProxy, _
	idQuery As IdQuery(Of T), _
	path As String, _
	delta As Double _
) As Nullable(Of Double)
public:
generic<typename T>
static Nullable<double> AddAndGet(
	ISpaceProxy^ spaceProxy, 
	IdQuery<T>^ idQuery, 
	String^ path, 
	double delta
)
J# supports the use of generic APIs, but not the declaration of new ones.
Generic Template Parameters
T
the type of the entry.
Parameters
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.
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: 9.7.0.0 (9.7.2.11000)