Share via


Array.GetLongLength 메서드

지정된 차원의 Array에 있는 요소의 수를 나타내는 64비트 정수를 가져옵니다.

네임스페이스: System
어셈블리: mscorlib(mscorlib.dll)

구문

‘선언
<ComVisibleAttribute(False)> _
Public Function GetLongLength ( _
    dimension As Integer _
) As Long
‘사용 방법
Dim instance As Array
Dim dimension As Integer
Dim returnValue As Long

returnValue = instance.GetLongLength(dimension)
[ComVisibleAttribute(false)] 
public long GetLongLength (
    int dimension
)
[ComVisibleAttribute(false)] 
public:
long long GetLongLength (
    int dimension
)
/** @attribute ComVisibleAttribute(false) */ 
public long GetLongLength (
    int dimension
)
ComVisibleAttribute(false) 
public function GetLongLength (
    dimension : int
) : long

매개 변수

  • dimension
    길이를 지정해야 하는 Array의 0부터 시작하는 차원입니다.

반환 값

지정된 차원의 요소 수를 나타내는 64비트 정수입니다.

예외

예외 형식 조건

IndexOutOfRangeException

dimension이 0보다 작은 경우

- 또는 -

dimension이 Rank보다 크거나 같은 경우

설명

GetLongLength의 예는 Array의 첫 번째 차원에 있는 요소 수를 반환하는 GetLongLength(0)입니다.

이 메서드는 O(1) 연산입니다.

플랫폼

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework에서 모든 플래폼의 모든 버전을 지원하지는 않습니다. 지원되는 버전의 목록은 시스템 요구 사항을 참조하십시오.

버전 정보

.NET Framework

2.0, 1.1에서 지원

참고 항목

참조

Array 클래스
Array 멤버
System 네임스페이스
Length
GetLength
ICollection.Count
Rank