Java.Util.ICollection.Clear Method
Removes all elements from this Collection, leaving it empty (optional).

Syntax

[Android.Runtime.Register("clear", "()V", "GetClearHandler:Java.Util.ICollectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void Clear ()

Exceptions

TypeReason
Java.Lang.UnsupportedOperationExceptionif removing from this Collection is not supported.

Remarks

Removes all elements from this Collection, leaving it empty (optional).

[Android Documentation]

Requirements

Namespace: Java.Util
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1