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

定义

IDictionary 中删除带有指定键的元素。Removes the element that has the specified key from the IDictionary.

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

参数

key
String

要移除的元素的键。The key of the element to remove.

返回

如果该元素已成功移除,则为 true;否则为 falsetrue if the element is successfully removed; otherwise, false. 如果在原始 false 中没有找到 key,此方法也会返回 IDictionary<TKey,TValue>This method also returns false if key was not found in the original IDictionary<TKey,TValue>.

实现

适用于