Contains Method

SortedSet(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 set contains a specific element.

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

'Declaration
Public Overridable Function Contains ( _
	item As T _
) As Boolean

Parameters

item
Type: T
The element to locate in the set.

Return Value

Type: System.Boolean
true if the set contains item; otherwise, false.

Implements

ICollection(Of T).Contains(T)

This method is an O(ln n) operation.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft