AbstractCollection.Contains(Object) AbstractCollection.Contains(Object) Method

Definition

Tests whether this Collection contains the specified object.

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

Parameters

Returns

Implements

Exceptions

if the object to look for isn't of the correct type.

if the object to look for 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