ReadOnlyDictionary<K,V>.Remove(K) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for