ImmutableInterlocked.InterlockedInitialize<T> Methode

Definitie

Hiermee stelt u een matrix in op de opgegeven matrix als de matrix niet is geïnitialiseerd.

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

Type parameters

T

Het type element dat door de matrix is opgeslagen.

Parameters

location
ImmutableArray<T>

De matrix die moet worden ingesteld op de opgegeven waarde.

value
ImmutableArray<T>

De waarde waarop de location parameter is ingesteld, als deze niet is geïnitialiseerd.

Retouren

true als aan de matrix de opgegeven waarde is toegewezen; anders, false.

Van toepassing op