Język

TypeProvider.IsEnum(Type) Metoda

Definicja

Wskazuje, czy typ Type jest typu Enum .

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

Parametry

type
Type

Testowane Type .

Zwraca

true jeśli element Type ma wartość Enum ; w przeciwnym razie false.

Wyjątki

type jest odwołaniem o wartości null (Nothing w Visual Basic).

Dotyczy