Array.GetLongLength(Int32) Metoda

Definicja

Pobiera 64-bitową liczbę całkowitą reprezentującą liczbę elementów w określonym wymiarze Array.

public:
 long GetLongLength(int dimension);
public long GetLongLength (int dimension);
[System.Runtime.InteropServices.ComVisible(false)]
public long GetLongLength (int dimension);
member this.GetLongLength : int -> int64
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.GetLongLength : int -> int64
Public Function GetLongLength (dimension As Integer) As Long

Parametry

dimension
Int32

Wymiar zerowy, którego Array długość musi być określona.

Zwraca

64-bitowa liczba całkowita reprezentująca liczbę elementów w określonym wymiarze.

Atrybuty

Wyjątki

Parametr dimension ma wartość niższą niż zero.

-lub-

dimension jest równa lub większa niż Rank.

Uwagi

Przykładem jest GetLongLength funkcja GetLongLength(0), która zwraca liczbę elementów w pierwszym wymiarze Arrayelementu .

Ta metoda jest operacją O(1).

Dotyczy

Zobacz też