Creates a three-dimensional Array of the specified Type and dimension lengths, with 0-based indexing.
[Visual Basic] Overloads Public Shared Function CreateInstance( _ ByVal elementType As Type, _ ByVal length1 As Integer, _ ByVal length2 As Integer, _ ByVal length3 As Integer _ ) As Array [C#] public static Array CreateInstance( Type elementType, int length1, int length2, int length3 ); [C++] public: static Array* CreateInstance( Type* elementType, int length1, int length2, int length3 ); [JScript] public static function CreateInstance( elementType : Type, length1 : int, length2 : int, length3 : int ) : Array;
A new three-dimensional Array of the specified Type and dimension lengths, with 0-based indexing.
Exception Type | Condition |
---|---|
ArgumentNullException | elementType is a null reference (in Visual Basic Nothing). |
ArgumentException | elementType is not a valid Type. |
ArgumentOutOfRangeException | length1 is less than 0.
-or- length2 is less than 0. -or- length3 is less than 0. |
Reference-type elements are initialized to a null reference (Nothing). Value-type elements are initialized to 0.
Array Class | Array Members | System Namespace | Array.CreateInstance Overload List