Array.GetLongLength(Int32) Metoda

Definice

Získá 64bitové celé číslo, které představuje počet prvků v zadané dimenzi 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

Dimenze založená na nule, Array jejíž délka je třeba určit.

Návraty

64bitové celé číslo, které představuje počet prvků v zadané dimenzi.

Atributy

Výjimky

Hodnota dimension je menší než nula.

nebo

dimension je rovno nebo větší než Rank.

Poznámky

GetLongLength Příkladem je GetLongLength(0), který vrátí počet prvků v první dimenzi Array.

Tato metoda je operace O(1).

Platí pro

Viz také