ExpandoObject.IDictionary<String,Object>.Remove(String) 方法

定义

从 中移除具有指定键的 IDictionary元素。

 virtual bool System.Collections.Generic.IDictionary<System.String,System.Object>.Remove(System::String ^ key) = System::Collections::Generic::IDictionary<System::String ^, System::Object ^>::Remove;
bool IDictionary<string,object>.Remove(string key);
abstract member System.Collections.Generic.IDictionary<System.String,System.Object>.Remove : string -> bool
override this.System.Collections.Generic.IDictionary<System.String,System.Object>.Remove : string -> bool
Function Remove (key As String) As Boolean Implements IDictionary(Of String, Object).Remove

参数

key
String

要删除的元素的键。

返回

true 如果已成功删除元素,则为 ;否则,为 false. 此方法还会返回false在原始key文件中找不到时IDictionary<TKey,TValue>

实现

适用于