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

定義

在所有情況下都會擲回 NotSupportedException 例外狀況。

 virtual void System.Collections.IDictionary.Remove(System::Object ^ key) = System::Collections::IDictionary::Remove;
void IDictionary.Remove (object key);
abstract member System.Collections.IDictionary.Remove : obj -> unit
override this.System.Collections.IDictionary.Remove : obj -> unit
Sub Remove (key As Object) Implements IDictionary.Remove

參數

key
Object

要移除的項目索引鍵。

實作

例外狀況

在所有情況下。

備註

這個成員是明確介面成員實作, 只有在 ReadOnlyDictionary<TKey,TValue> 執行個體轉換成 IDictionary 介面時,才能使用這個成員。 如果 IDictionary 實作介面的集合是只讀的,介面會 Remove 指定 方法應該擲回 NotSupportedException 例外狀況。

適用於