ImmutableInterlocked.InterlockedCompareExchange<T> 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
변경할 수 없는 두 배열이 같은지 비교하여 같으면 배열 중 하나를 바꿉니다.
public:
generic <typename T>
static System::Collections::Immutable::ImmutableArray<T> InterlockedCompareExchange(System::Collections::Immutable::ImmutableArray<T> % ___location, System::Collections::Immutable::ImmutableArray<T> value, System::Collections::Immutable::ImmutableArray<T> comparand);
public static System.Collections.Immutable.ImmutableArray<T> InterlockedCompareExchange<T> (ref System.Collections.Immutable.ImmutableArray<T> ___location, System.Collections.Immutable.ImmutableArray<T> value, System.Collections.Immutable.ImmutableArray<T> comparand);
static member InterlockedCompareExchange : ImmutableArray * System.Collections.Immutable.ImmutableArray<'T> * System.Collections.Immutable.ImmutableArray<'T> -> System.Collections.Immutable.ImmutableArray<'T>
Public Shared Function InterlockedCompareExchange(Of T) (ByRef ___location As ImmutableArray(Of T), value As ImmutableArray(Of T), comparand As ImmutableArray(Of T)) As ImmutableArray(Of T)
형식 매개 변수
- T
배열에 의해 저장되는 요소의 형식입니다.
매개 변수
- ___location
- ImmutableArray<T>
comparand
와 비교하여 바뀔 수 있는 값을 가진 대상입니다.
- value
- ImmutableArray<T>
비교 결과가 같은 경우 대상 값을 바꿀 값입니다.
- comparand
- ImmutableArray<T>
___location
의 값과 비교할 값입니다.
반환
___location
의 원래 값입니다.