SynchronizedReadOnlyCollection(Of T).IList.Contains Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Determines whether the collection contains an element with a specific value.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
'Declaration Private Function Contains ( _ value As Object _ ) As Boolean Implements IList.Contains
Parameters
- value
- Type: System.Object
The object to locate in the collection.
Return Value
Type: System.BooleanReturns true if the element value is found in the collection; otherwise, false.
Implements
IList.Contains(Object)| Exception | Condition |
|---|---|
| ArgumentException | value is not an object of the type contained in the collection. |
Show: