Share via


ImmutableInterlocked.InterlockedExchange<T> Método

Definição

Define uma matriz para a matriz especificada e retorna uma referência à matriz original, como uma operação atômica.

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)

Parâmetros de tipo

T

O tipo de elemento armazenado pela matriz.

Parâmetros

location
ImmutableArray<T>

A matriz a ser definida com o valor especificado.

value
ImmutableArray<T>

O valor para o qual o parâmetro location é definido.

Retornos

O valor original de location.

Aplica-se a