SortedDictionary<TKey,TValue>.KeyCollection.ICollection<TKey>.Contains 方法   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
确定 ICollection<T> 是否包含指定值。
 virtual bool System.Collections.Generic.ICollection<TKey>.Contains(TKey item) = System::Collections::Generic::ICollection<TKey>::Contains;
	bool ICollection<TKey>.Contains (TKey item);
	abstract member System.Collections.Generic.ICollection<TKey>.Contains : 'Key -> bool
override this.System.Collections.Generic.ICollection<TKey>.Contains : 'Key -> bool
	Function Contains (item As TKey) As Boolean Implements ICollection(Of TKey).Contains
	参数
- item
 - TKey
 
要在 ICollection<T> 中定位的对象。
返回
如果在 true 中找到该项,则为 ICollection<T>;否则为 false。
实现
注解
实现在确定对象相等性的方式上可能会有所不同;例如, List<T> 使用 Default,而 SortedDictionary<TKey,TValue> 允许用户指定 IComparer<T> 用于比较键的实现。
此方法是 O (1) 操作。