Share via


ImmutableInterlocked.InterlockedInitialize<T> Método

Definição

Define uma matriz para a matriz especificada se a matriz não foi inicializada.

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

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 está definido, se ele não foi inicializado.

Retornos

true se a matriz tiver sido atribuída ao valor especificado; caso contrário, false.

Aplica-se a