ReadOnlyDictionary<TKey,TValue>.IDictionary.Item[Object] 속성

정의

지정된 키를 가진 요소를 가져옵니다.

property System::Object ^ System::Collections::IDictionary::Item[System::Object ^] { System::Object ^ get(System::Object ^ key); void set(System::Object ^ key, System::Object ^ value); };
object System.Collections.IDictionary.Item[object key] { get; set; }
object? System.Collections.IDictionary.Item[object key] { get; set; }
member this.System.Collections.IDictionary.Item(obj) : obj with get, set
 Property Item(key As Object) As Object Implements IDictionary.Item

매개 변수

key
Object

가져오거나 설정할 요소의 키입니다.

속성 값

지정된 키를 가진 요소입니다.

구현

예외

key이(가) null인 경우

속성이 설정되었습니다.

또는

속성이 설정되어 있고 key가 컬렉션에 없으며 사전의 크기가 고정된 경우

설명

이 멤버는 명시적 인터페이스 멤버 구현이며, ReadOnlyDictionary<TKey,TValue> 인스턴스가 IDictionary 인터페이스로 캐스팅된 경우에만 사용할 수 있습니다.

적용 대상