IList.Contains Method

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.

Namespace:  System.Collections.Generic
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.Boolean
Returns true if the element value is found in the collection; otherwise, false.

Implements

IList.Contains(Object)

ExceptionCondition
ArgumentException

value is not an object of the type contained in the collection.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft