ReadOnlyDictionary<TKey,TValue>.IDictionary<TKey,TValue>.Remove(TKey) 方法

定义

在所有情况下都会引发 NotSupportedException 异常。Throws a NotSupportedException exception in all cases.

 virtual bool System.Collections.Generic.IDictionary<TKey,TValue>.Remove(TKey key) = System::Collections::Generic::IDictionary<TKey, TValue>::Remove;
bool IDictionary<TKey,TValue>.Remove (TKey key);
abstract member System.Collections.Generic.IDictionary<TKey,TValue>.Remove : 'Key -> bool
override this.System.Collections.Generic.IDictionary<TKey,TValue>.Remove : 'Key -> bool
Function Remove (key As TKey) As Boolean Implements IDictionary(Of TKey, TValue).Remove

参数

key
TKey

要移除的元素的键。The key of the element to remove.

返回

Boolean

在所有情况下都会引发 NotSupportedException 异常。Throws a NotSupportedException exception in all cases.

实现

例外

在所有情况下。In all cases.

适用于