Gets the rank, or number of dimensions, in the Array.
[Visual Basic] Public ReadOnly Property Rank As Integer [C#] public int Rank {get;} [C++] public: __property int get_Rank(); [JScript] public function get Rank() : int;
The rank, or number of dimensions, in the Array.
Jagged arrays, defined as Type [][]...[], are considered to be arrays of arrays; therefore, calling Rank on a jagged array always returns 1.
Array Class | Array Members | System Namespace | Length | GetLength