Contains Method

SynchronizedReadOnlyCollection(Of T).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
Public Function Contains ( _
	item As T _
) As Boolean

Parameters

item
Type: T

Return Value

Type: System.Boolean
true if the element value is found in the collection; otherwise, false.

Implements

ICollection(Of T).Contains(T)

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