TypeProvider.GetEnumNames Method (Type)

 
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.

Provides a string array that contains the names for the specified Enum in indexed order.

Namespace:   System.Workflow.ComponentModel.Compiler
Assembly:  System.Workflow.ComponentModel (in System.Workflow.ComponentModel.dll)

public static string[] GetEnumNames(
	Type enumType
)

Parameters

enumType
Type: System.Type

The type to obtain the names from.

Return Value

Type: System.String[]

The names for the specified Enum in indexed order.

Exception Condition
ArgumentNullException

enumType is a null reference (Visual Basic Nothing).

ArgumentException

enumType Is not an Enum.

.NET Framework
Available since 3.0
Return to top
Show: