ReadOnlyDictionary<TKey,TValue>.IDictionary.Remove(Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在所有情況下都會投 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例外。