Interlocked.Exchange Method (Int64%, Int64)
Sets a 64-bit signed integer to a specified value and returns the original value, as an atomic operation.
Assembly: mscorlib (in mscorlib.dll)
[SecuritySafeCriticalAttribute] public static long Exchange( ref long location1, long value )
- Type: System.Int64%
The variable to set to the specified value.
- Type: System.Int64
The value to which the location1 parameter is set.
Return ValueType: System.Int64
The original value of location1.
Silverlight for Windows Phone64-bit members of the Interlocked class are present but not supported.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.