TypeProvider.IsEnum(Type) Methode

Definition

Gibt an, ob ein Type den Typ Enum aufweist.

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

Der zu testende Type.

Gibt zurück

Boolean

true, wenn Type vom Typ Enum ist, andernfalls false.

Ausnahmen

type ist ein NULL-Verweis (Nothing in Visual Basic).

Gilt für