Compartir a través de


ArrayList.Clear Method

Removes all objects from the ArrayList collection.

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

Syntax

public virtual void Clear ()

Remarks

The Count property is set to 0 (zero); the value of the Capacity property remains unchanged.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

ArrayList Class
ArrayList Members
System.Collections Namespace