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.