ReadOnlyDictionary<TKey,TValue>.ValueCollection.ICollection<TValue>.Add 方法

定义

NotSupportedException在所有情况下都引发异常。

 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 方法应引发 NotSupportedException 异常。

适用于