Edit

Share via


ReadOnlyDictionary<K,V>.Remove(K) Method

Definition

It will always throw System.NotSupportedException as ReadOnlyDictionary is read-only.

public:
 virtual bool Remove(K key);
public bool Remove (K key);
abstract member Remove : 'K -> bool
override this.Remove : 'K -> bool
Public Function Remove (key As K) As Boolean

Parameters

key
K

The key of the element to remove.

Returns

It will always throw an exception as ReadOnlyDictionary is read-only.

Implements

Exceptions

Thrown when this method is called.

Applies to