ReadOnlyDictionary<TKey,TValue>.ValueCollection.ICollection<TValue>.Add 메서드

정의

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

 virtual void System.Collections.Generic.ICollection<TValue>.Add(TValue item) = System::Collections::Generic::ICollection<TValue>::Add;
void ICollection<TValue>.Add (TValue item);
abstract member System.Collections.Generic.ICollection<TValue>.Add : 'Value -> unit
override this.System.Collections.Generic.ICollection<TValue>.Add : 'Value -> unit
Sub Add (item As TValue) Implements ICollection(Of TValue).Add

매개 변수

item
TValue

컬렉션에 추가할 개체입니다.

구현

예외

모든 경우

설명

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

적용 대상