Freigeben über


ISet.Size Method

Definition

Returns the number of elements in this set (its cardinality).

[Android.Runtime.Register("size", "()I", "GetSizeHandler:Java.Util.ISetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int Size ();
[<Android.Runtime.Register("size", "()I", "GetSizeHandler:Java.Util.ISetInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Size : unit -> int

Returns

the number of elements in this set (its cardinality)

Implements

Attributes

Remarks

Returns the number of elements in this set (its cardinality). If this set contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Java documentation for java.util.Set.size().

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