EnumBuilder.MakeArrayType Method (Int32)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Returns a Type object representing an array of the current type, with the specified number of dimensions.

Namespace:   System.Reflection.Emit
Assembly:  mscorlib (in mscorlib.dll)

Public Overrides Function MakeArrayType (
	rank As Integer
) As Type

Parameters

rank
Type: System.Int32

The number of dimensions for the array. This number must be less than or equal to 32.

Return Value

Type: System.Type

An object representing an array of the current type, with the specified number of dimensions.

Exception Condition
IndexOutOfRangeException

rank is less than 1.

.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Return to top
Show: