Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Array.GetLongLength Method

Note: This namespace, class, or member is supported only in version 1.1 of the .NET Framework.

Gets a 64-bit integer that represents the number of elements in the specified dimension of the Array.

[Visual Basic]
<ComVisible(False)>
Public Function GetLongLength( _
   ByVal dimension As Integer _
) As Long
[C#]
[ComVisible(false)]
public long GetLongLength(
 int dimension
);
[C++]
[ComVisible(false)]
public: __int64 GetLongLength(
 int dimension
);
[JScript]
public
   ComVisible(false)
function GetLongLength(
 dimension : int
) : long;

Parameters

dimension
A zero-based dimension of the Array whose length needs to be determined.

Return Value

A 64-bit integer that represents the number of elements in the specified dimension.

Exceptions

Exception Type Condition
IndexOutOfRangeException dimension is less than zero.

-or-

dimension is equal to or greater than Rank.

Remarks

An example of GetLength is GetLength(0), which returns the number of elements in the first dimension 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

See Also

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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.