TypeProvider.IsEnum(Type) Methode

Definition

Gibt an, ob ein Type Typ Enum ist.

public:
 static bool IsEnum(Type ^ type);
public static bool IsEnum(Type type);
static member IsEnum : Type -> bool
Public Shared Function IsEnum (type As Type) As Boolean

Parameter

type
Type

Das Type zu testende.

Gibt zurück

true wenn dies Type ein Enum ; andernfalls false.

Ausnahmen

type ist ein Nullverweis (Nothing in Visual Basic).

Gilt für: