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 异常。

适用于