Windows Dev Center

Array.Length Property

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:
© 2015 Microsoft