語言

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

定義

從 ICollection<T>移除第一個出現的特定物件。

 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>

要從 中移除 ICollection<T>的物件。

傳回

true 若 item 成功從 ICollection<T>中移除;,否則, false。 若false原始 中找不到 item,此方法也會回傳ICollection<T>。

實作

備註

此成員為明確介面成員實作。 它只能在實 HttpRequestOptions 例投射到 ICollection<T> 介面時使用。

適用於