Array.Length Property

July 28, 2014

Gets a 32-bit integer that represents the total number of elements in all the dimensions of the Array; zero if there are no elements in the array.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

public int Length { get; }

Property Value

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

Retrieving the value of this property is an O(1) operation.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft