GigaSpaces XAP.NET Documentation
AddAndGet<(Of <(T>)>) Method (spaceProxy, idQuery, path, delta)
Class LibraryGigaSpaces.Core.Change.ExtensionsChangeExtensionAddAndGet<(Of <(T>)>)(ISpaceProxy, IdQuery<(Of <(T>)>), String, Int32)
Atomically adds the given value to the current value of an entry's property.
Declaration Syntax
C#Visual BasicVisual C++J#
public static Nullable<int> AddAndGet<T>(
	ISpaceProxy spaceProxy,
	IdQuery<T> idQuery,
	string path,
	int delta
Public Shared Function AddAndGet(Of T) ( _
	spaceProxy As ISpaceProxy, _
	idQuery As IdQuery(Of T), _
	path As String, _
	delta As Integer _
) As Nullable(Of Integer)
generic<typename T>
static Nullable<int> AddAndGet(
	ISpaceProxy^ spaceProxy, 
	IdQuery<T>^ idQuery, 
	String^ path, 
	int delta
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 (Int32)
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: (