SortedSet(Of T).Add Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Adds an element to the set and returns a value that indicates if it was successfully added.
Assembly: System (in System.dll)
The SortedSet(Of T) class does not accept duplicate elements. If item is already in the set, this method returns false and does not throw an exception.
If Count already equals the capacity of the SortedSet(Of T) object, the capacity is automatically adjusted to accommodate the new item.
The following example adds elements to a sorted set. This code example is part of a larger example provided for the SortedSet(Of T) class.