AbstractCollection.Remove(Object) AbstractCollection.Remove(Object) Method

Definition

Removes one instance of the specified object from this Collection if one is contained (optional).

[Android.Runtime.Register("remove", "(Ljava/lang/Object;)Z", "GetRemove_Ljava_lang_Object_Handler")]
public virtual bool Remove (Java.Lang.Object o);
abstract member Remove : Java.Lang.Object -> bool
override this.Remove : Java.Lang.Object -> bool

Parameters

Returns

Implements

Exceptions

if removing from this Collection is not supported.

if the object passed is not of the correct type.

if object is null and this Collection doesn't support null elements.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to