共用方式為


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

定義

從集合中移除索引鍵和值。

 virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.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);
abstract member System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Remove : System.Collections.Generic.KeyValuePair<string, obj> -> bool
override this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Remove : System.Collections.Generic.KeyValuePair<string, obj> -> bool
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> 結構,表示要從集合中移除的索引鍵和值。

傳回

如果成功找到並移除索引鍵和值,則為 true;否則為 false。 如果在 ICollection<T> 中找不到索引鍵和值,則這個方法會傳回 false

實作

適用於