Dictionary<TKey,TValue>.ValueCollection.ICollection<TValue>.Add(TValue) 方法

定义

将某项添加到 ICollection<T> 中。Adds an item to the ICollection<T>. 此实现始终引发 NotSupportedExceptionThis implementation always throws 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

要添加到 ICollection<T> 的对象。The object to add to the ICollection<T>.

实现

例外

始终引发。Always thrown.

适用于

另请参阅