ReadOnlyDictionary<TKey,TValue>.IDictionary.Add(Object, Object) 메서드

정의

모든 경우에 NotSupportedException 예외를 throw합니다.

 virtual void System.Collections.IDictionary.Add(System::Object ^ key, System::Object ^ value) = System::Collections::IDictionary::Add;
void IDictionary.Add (object key, object value);
abstract member System.Collections.IDictionary.Add : obj * obj -> unit
override this.System.Collections.IDictionary.Add : obj * obj -> unit
Sub Add (key As Object, value As Object) Implements IDictionary.Add

매개 변수

key
Object

추가할 요소의 키입니다.

value
Object

추가할 요소의 값입니다.

구현

예외

모든 경우

설명

이 멤버는 명시적 인터페이스 멤버 구현이며, ReadOnlyDictionary<TKey,TValue> 인스턴스가 IDictionary 인터페이스로 캐스팅된 경우에만 사용할 수 있습니다. 인터페이스는 IDictionary 인터페이스를 구현하는 컬렉션이 Add 읽기 전용인 경우 메서드가 예외를 throw NotSupportedException 해야 한다고 지정합니다.

적용 대상