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

定义

确定 ICollection<T> 是否包含特定值。

 virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Contains(System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^> item) = System::Collections::Generic::ICollection<System::Collections::Generic::KeyValuePair<System::String ^, System::Object ^>>::Contains;
bool ICollection<KeyValuePair<string,object>>.Contains (System.Collections.Generic.KeyValuePair<string,object> item);
abstract member System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Contains : System.Collections.Generic.KeyValuePair<string, obj> -> bool
override this.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.String,System.Object>>.Contains : System.Collections.Generic.KeyValuePair<string, obj> -> bool
Function Contains (item As KeyValuePair(Of String, Object)) As Boolean Implements ICollection(Of KeyValuePair(Of String, Object)).Contains

参数

item
KeyValuePair<String,Object>

要在 ICollection<T> 中定位的对象。

返回

如果在 true 中找到 item,则为 ICollection<T>;否则为 false

实现

注解

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

适用于