Array.LongLength 属性

定义

获取一个 64 位整数,该整数表示 Array 的所有维数中元素的总数。Gets a 64-bit integer that represents the total number of elements in all the dimensions of the Array.

public:
 property long LongLength { long get(); };
public long LongLength { get; }
[System.Runtime.InteropServices.ComVisible(false)]
public long LongLength { get; }
member this.LongLength : int64
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.LongLength : int64
Public ReadOnly Property LongLength As Long

属性值

Int64

一个 64 位整数,表示 Array 的所有维数中元素的总数。A 64-bit integer that represents the total number of elements in all the dimensions of the Array.

属性

注解

检索此属性的值的运算复杂度为 O(1)。Retrieving the value of this property is an O(1) operation.

适用于

另请参阅