ImmutableInterlocked.InterlockedExchange<T> 메서드

정의

배열을 지정된 배열로 설정하고 원래 배열에 대한 참조를 원자성 연산으로 반환합니다.

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)

형식 매개 변수

T

배열에 의해 저장된 요소의 형식입니다.

매개 변수

location
ImmutableArray<T>

지정된 값으로 설정할 배열입니다.

value
ImmutableArray<T>

location 매개 변수가 설정된 값입니다.

반품

location원래 값입니다.

적용 대상