語言

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

定義

在所有情況下都會投 NotSupportedException 出例外。

 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

關鍵是元素要移除。

傳回

在所有情況下都會投 NotSupportedException 出例外。

實作

例外狀況

無論哪種情況。

適用於