Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets a 32-bit signed integer to a specified value as an atomic operation, and then returns the original value.
Namespace: System.Threading
Assembly: mscorlib (in mscorlib.dll)
Syntax
[MethodImplAttribute]
public static int Exchange (
ref intlocation1,
intvalue
)
Parameters
- location1
The variable to be set to the specified value. - value
The value to which the location1 parameter is set.
Return Value
The original value of the location1 parameter.
Version Information
Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.
See Also
Reference
Interlocked Class
Interlocked Members
System.Threading Namespace