Επεξεργασία

Κοινή χρήση μέσω


ReadOnlyDictionary<TKey,TValue>.ValueCollection.ICollection<TValue>.Add Method

Definition

Throws a NotSupportedException exception in all cases.

 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

Parameters

item
TValue

The object to add to the collection.

Implements

Exceptions

In all cases.

Remarks

This member is an explicit interface member implementation. It can be used only when the ReadOnlyDictionary<TKey,TValue>.ValueCollection instance is cast to an ICollection<T> interface. The ICollection<T> interface specifies that the Add method should throw a NotSupportedException exception if the collection that implements the interface is read-only.

Applies to