ICollection.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:Java.Util.ICollectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool Remove (Java.Lang.Object o);
abstract member Remove : Java.Lang.Object -> bool

Parameters

o
Object

Returns

Boolean
Attributes

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