Array.CreateInstance Method (Type, Int64)
Assembly: mscorlib (in mscorlib.dll)
elementType is a null reference (Nothing in Visual Basic).
lengths is a null reference (Nothing in Visual Basic).
elementType is not a valid Type.
The lengths array contains less than one element.
elementType is not supported. For example, Void is not supported.
elementType is an open generic type.
Any value in lengths is less than zero or greater than Int32.MaxValue.
The number of elements in the lengths array must equal the number of dimensions in the new Array. Each element of the lengths array must specify the length of the corresponding dimension in the new Array.
Reference-type elements are initialized to a null reference (Nothing in Visual Basic). Value-type elements are initialized to zero.
This method is an O(n) operation, where n is the product of all values in lengths.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.