ImmutableInterlocked.InterlockedExchange<T> Metod

Definition

Anger en matris till den angivna matrisen och returnerar en referens till den ursprungliga matrisen som en atomisk åtgärd.

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableArray<T> InterlockedExchange(System::Collections::Immutable::ImmutableArray<T> % location, System::Collections::Immutable::ImmutableArray<T> value);
public static System.Collections.Immutable.ImmutableArray<T> InterlockedExchange<T>(ref System.Collections.Immutable.ImmutableArray<T> location, System.Collections.Immutable.ImmutableArray<T> value);
static member InterlockedExchange : ImmutableArray * System.Collections.Immutable.ImmutableArray<'T> -> System.Collections.Immutable.ImmutableArray<'T>
Public Shared Function InterlockedExchange(Of T) (ByRef location As ImmutableArray(Of T), value As ImmutableArray(Of T)) As ImmutableArray(Of T)

Typparametrar

T

Typ av element som lagras av matrisen.

Parametrar

location
ImmutableArray<T>

Matrisen som ska anges till det angivna värdet.

value
ImmutableArray<T>

Värdet som parametern location har angetts till.

Returer

Det ursprungliga värdet för location.

Gäller för