  | IAtomicLongGetAndSet Method  | 
 Atomically sets the given value and returns the old value.
 
    Namespace: 
   Hazelcast.Core
    Assembly:
   Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.4
Syntaxlong GetAndSet(
	long newValue
)
Function GetAndSet ( 
	newValue As Long
) As Long
long long GetAndSet(
	long long newValue
)
abstract GetAndSet : 
        newValue : int64 -> int64 
Parameters
- newValue
 - Type: SystemInt64
the new value 
Return Value
Type: 
Int64the old value
RemarksAtomically sets the given value and returns the old value.
See Also