NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Interlocked.Exchange (Object, Object)

Sets an Object variable to a specified value as an atomic operation and returns the original value.

[Visual Basic]
Overloads Public Shared Function Exchange( _
   ByRef location1 As Object, _
   ByVal value As Object _
) As Object
[C#]
public static object Exchange(
   ref object location1,
   object value
);
[C++]
public: static Object* Exchange(
   Object** location1,
   Object* value
);
[JScript]
public static function Exchange(
   location1 : Object,
   value : Object
) : Object;

Parameters

location1
The variable to set to the supplied value as an atomic operation.
value
The value to which location1 is set.

Return Value

The original (unset) value of the location1 variable.

Remarks

To be supplied.

See Also

Interlocked Class | Interlocked Members | System.Threading Namespace | Interlocked.Exchange Overload List