System Namespace Array Class
Returns the number of elements in the specified dimension of the Array.
[ VB ]
<Serializable>
Public Function GetLength ( _
ByVal dimension As Integer _
) As Integer
[ C# ]
[Serializable]
public int GetLength (
int dimension
);
[ C++ ]
[Serializable]
public: int GetLength (
int dimension
);
[JScript ]
public Serializable
function GetLength (
dimension : int
) : int;
- dimension
- A zero-based dimension of the Array whose length needs to be determined.
The number of elements in the specified dimension.
An example of GetLength is GetLength ( 0 )
, which returns the number of elements in the first dimension of the Array.
Array Members Length ICollection.Count Rank