Export (0) Print
Expand All

CollectionBase.Clear Method

Removes all objects from the CollectionBase instance.

[Visual Basic]
Public Overridable Sub Clear() Implements IList.Clear
[C#]
public virtual void Clear();
[C++]
public: virtual void Clear();
[JScript]
public function Clear();

Implements

IList.Clear

Remarks

Count is set to zero.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

CollectionBase Class | CollectionBase Members | System.Collections Namespace

Show:
© 2015 Microsoft