Determines whether an element is in the collection.
The item to find in the collection.
true if the item was found in the collection; otherwise, false.
You can also call IndexOf to get the index of a specific item in the collection. If the element you specify doesn't exist, IndexOf returns -1, so that's another way to determine that the collection doesn't contain a given element.
If you are programming using Visual C++ component extensions (C++/CX), there is no equivalent for Contains. You should iterate through the collection by calling First, and check each item for equality against the element you are looking for.
Minimum supported client
Minimum supported server
|Windows Server 2012|
Minimum supported phone
|Windows Phone 8.1 [Windows Runtime apps only]|