SynchronizedKeyedCollection<K, T>.Contains Method (K)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Returns a value that indicates whether the collection contains an item with a specified key.

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

public bool Contains(
	K key


Type: K

The key of type K being tested for.

Return Value

Type: System.Boolean

true if the collection contains an item with the key specified; otherwise, false.

.NET Framework
Available since 3.0
Return to top