CollectionBase::Clear Method ()
.NET Framework (current version)
Removes all objects from the CollectionBase instance. This method cannot be overridden.
Assembly: mscorlib (in mscorlib.dll)
Count is set to zero.
This method is an O(n) operation, where n is Count.
To perform custom actions before or after the collection is cleared, override the protected OnClear or OnClearComplete method.
Universal Windows Platform
Available since 10
.NET Framework
Available since 1.1
Available since 10
.NET Framework
Available since 1.1
Show: