NameObjectCollectionBase.BaseClear Method ()


Removes all entries from the NameObjectCollectionBase instance.

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

member BaseClear : unit -> unit

Exception Condition

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.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Return to top