SynchronizedCollection(Of T).Contains Method (T)

 

Determines whether the collection contains an element with a specific value.

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

Public Function Contains (
	item As T
) As Boolean

Parameters

item
Type: T

The object to locate in the collection.

Return Value

Type: System.Boolean

true if the element value is found in the collection; otherwise false.

Exception Condition
ArgumentException

The value set is null or is not of the correct generic type T for the collection.

.NET Framework
Available since 3.0
Return to top
Show: