Remove Method

SortedSet(Of T).Remove Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Removes a specified item from the SortedSet(Of T).

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

'Declaration
Public Function Remove ( _
	item As T _
) As Boolean

Parameters

item
Type: T
The element to remove.

Return Value

Type: System.Boolean
true if the element is found and successfully removed; otherwise, false.

Implements

ICollection(Of T).Remove(T)

If the SortedSet(Of T) object does not contain the specified element, the object remains unchanged and no exception is thrown.

item can be Nothing for reference types.

This method is an O(log n) operation.

Windows Phone OS

Supported in: 8.1, 8.0

Show:
© 2017 Microsoft