NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ArrayList.Clear

Clears the contents of the ArrayList.

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

Return Value

None.

Exceptions

Exception Type Condition
NotSupportedException The ArrayList is read-only.

-or-

The ArrayList has a fixed size.

Remarks

This method can be overridden by a derived class.

Count is set to 0. You need to call TrimToSize to trim your ArrayList if required.

See Also

ArrayList Class | ArrayList Members | System.Collections Namespace