ExpandoObject.IDictionary<String,Object>.Remove(String) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从 中移除具有指定键的 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>。