TypeProvider.IsEnum 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.

Indicates whether a Type is of type Enum .

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

public static bool IsEnum(
	Type type
)

Parameters

type
Type: System.Type

The Type to be tested.

Return Value

Type: System.Boolean

true if the Type is an Enum ; otherwise false.

Exception Condition
ArgumentNullException

type is a null reference (Nothing in Visual Basic).

.NET Framework
Available since 3.0
Return to top
Show: