다음을 통해 공유


ConcurrentDictionary<TKey,TValue>.AlternateLookup<TAlternateKey>.Item[TAlternateKey] 속성

정의

지정된 대체 키와 연결된 값을 가져오거나 설정합니다.

public:
 property TValue default[TAlternateKey] { TValue get(TAlternateKey key); void set(TAlternateKey key, TValue value); };
public TValue this[TAlternateKey key] { get; set; }
member this.Item('AlternateKey) : 'Value with get, set
Default Public Property Item(key As TAlternateKey) As TValue

매개 변수

key
TAlternateKey

가져오기 또는 설정할 값의 대체 키입니다.

속성 값

TValue

지정된 대체 키와 연결된 값입니다. 지정된 대체 키를 찾을 수 없으면 가져오기 작업이 throw됩니다.

KeyNotFoundException및 set 연산은 지정된 키를 사용하여 새 요소를 만듭니다.

예외

속성이 검색되고 대체 키가 컬렉션에 없습니다.

적용 대상