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

定义

ICollection<T> 中移除特定对象的第一个匹配项。

C#
bool ICollection<KeyValuePair<string,object>>.Remove (System.Collections.Generic.KeyValuePair<string,object> item);

参数

item
KeyValuePair<String,Object>

要从 ICollection<T> 中删除的对象。

返回

如果从 true 中成功移除 item,则为 ICollection<T>;否则为 false。 如果在原始 false 中没有找到 item,该方法也会返回 ICollection<T>

实现

注解

此成员是显式接口成员的实现。 它只能在 HttpRequestOptions 实例被强制转换为 ICollection<T> 接口时使用。

适用于

产品 版本
.NET 5, 6, 7, 8, 9