Mono Class Library: System.Array Overview | Members

System.Array.GetLength Method

Gets the number of elements in the specified dimension of the array. [Edit]

public int GetLength (int dimension)

Parameters

dimension
The zero-based dimension of the array whose length is to be determined. [Edit]

Returns

The number of elements in the specified dimension of the array. [Edit]

Exceptions

TypeReason
IndexOutOfRangeException

dimension is less than zero.

-or-

dimension is equal to or greater than Array.Rank.

[Edit]

Remarks

Documentation for this section has not yet been entered. [Edit]

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0