Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

SortedSet<T>::Remove Method (T)

.NET Framework (current version)
 

Removes a specified item from the SortedSet<T>.

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

public:
virtual bool Remove(
	T item
) sealed

Parameters

item
Type: T

The element to remove.

Return Value

Type: System::Boolean

true if the element is found and successfully removed; otherwise, false.

If the SortedSet<T> object does not contain the specified element, the object remains unchanged and no exception is thrown.

item can be null for reference types.

This method is an O(log n) operation.

Universal Windows Platform
Available since 8
.NET Framework
Available since 4.0
Portable Class Library
Supported in: portable .NET platforms
Windows Phone Silverlight
Available since 8.0
Windows Phone
Available since 8.1
Return to top
Show:
© 2017 Microsoft