SortedSet(Of T).ICollection(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 item to an ICollection(Of T) object.
Assembly: System (in System.dll)
Parameters
- item
- Type: T
The object to add to the ICollection(Of T) object.
Implements
ICollection(Of T).Add(T)| Exception | Condition |
|---|---|
| NotSupportedException | The ICollection(Of T) is read-only. |
This member is an explicit interface member implementation. It can be used only when the SortedSet(Of T) instance is cast to an ICollection(Of T) interface.
If Count is less than Capacity, this method is an O(1) operation. If the capacity must be increased to accommodate the new element, this method becomes an O(n) operation, where n is Count.