Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SortedDictionary.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<TKey,TValue>>.Contains Method 

Note: This method is new in the .NET Framework version 2.0.

Determines whether the ICollection contains a specific key and value.

Namespace: System.Collections.Generic
Assembly: System (in system.dll)

bool ICollection<KeyValuePair<TKey,TValue>>.Contains (
	KeyValuePair<TKey,TValue> keyValuePair
J# supports the use of explicit interface implementations, but not the declaration of new ones.
JScript supports the use of explicit interface implementations, but not the declarations of new ones.



The KeyValuePair structure to locate in the ICollection.

Return Value

true if keyValuePair is found in the ICollection; otherwise, false.

This method determines equality by first using the Comparer property for the key and then using EqualityComparer.Default for the value.

This method is an O(log n) operation.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
© 2014 Microsoft. All rights reserved.