IMap.Size Method

Definition

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

C#
[Android.Runtime.Register("size", "()I", "GetSizeHandler:Java.Util.IMapInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public int Size();

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

Produkt Versioner
.NET for Android .NET for Android API 34, .NET for Android API 35