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

定义

确定是否 ICollection<T> 包含一个指定键和值。Determines whether the ICollection<T> contains a specific key and value.

 virtual bool System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,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);
Function Contains (item As KeyValuePair(Of String, Object)) As Boolean Implements ICollection(Of KeyValuePair(Of String, Object)).Contains

参数

item
KeyValuePair<String,Object>

要在 KeyValuePair<TKey,TValue> 中定位的 ICollection<T> 结构。The KeyValuePair<TKey,TValue> structure to locate in the ICollection<T>.

返回

如果集合包含一个特定键和值,则为 true;否则为 falsetrue if the collection contains a specific key and value; otherwise, false.

实现

适用于