This documentation is archived and is not being maintained.

Array.Length Property

Gets a 32-bit integer that represents the total number of elements in all the dimensions of the Array.

[Visual Basic]
Public ReadOnly Property Length As Integer
[C#]
public int Length {get;}
[C++]
public: __property int get_Length();
[JScript]
public function get Length() : int;

Property Value

A 32-bit integer that represents the total number of elements in all the dimensions of the Array.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

Array Class | Array Members | System Namespace | ICollection.Count | GetLength | Rank

Show: