IMap.Size Method

Definition

Returns the number of key-value mappings in this map.

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

Returns

the number of key-value mappings in this map

Attributes

Remarks

Returns the number of key-value mappings in this map. If the map contains more than Integer.MAX_VALUE elements, returns Integer.MAX_VALUE.

Java documentation for java.util.Map.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