Array.GetLength(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the length of the specified array object, as an int
.
[Android.Runtime.Register("getLength", "(Ljava/lang/Object;)I", "")]
public static int GetLength (Java.Lang.Object array);
[<Android.Runtime.Register("getLength", "(Ljava/lang/Object;)I", "")>]
static member GetLength : Java.Lang.Object -> int
Parameters
- array
- Object
the array
Returns
the length of the array
- Attributes
Exceptions
if array == null
if array
is not an array
Remarks
Returns the length of the specified array object, as an int
.
Java documentation for java.lang.reflect.Array.getLength(java.lang.Object)
.
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.