NameObjectCollectionBase.BaseClear Method ()
.NET Framework (current version)
Removes all entries from the NameObjectCollectionBase instance.
Assembly: System (in System.dll)
| Exception | Condition |
|---|---|
| NotSupportedException | The collection is read-only. |
Count is set to zero, and references to other objects from elements of the collection are also released.
This method is an O(1) operation.
The following code example uses BaseClear to remove all elements from a NameObjectCollectionBase.
Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Available since 10
.NET Framework
Available since 1.1
Show: