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

定义

从集合中移除键和值。Removes a key and value from the collection.

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

参数

item
KeyValuePair<String,Object>

KeyValuePair<TKey,TValue> 结构,表示要从集合中移除的键和值。The KeyValuePair<TKey,TValue> structure that represents the key and value to remove from the collection.

返回

如果成功找到并移除键和值,则为 true;否则为 falsetrue if the key and value are successfully found and removed; otherwise, false. 如果在 false 中找不到键和值,则此方法返回 ICollection<T>This method returns false if the key and value are not found in the ICollection<T>.

实现

适用于