TypeProvider.IsEnum(Type) Metoda

Definice

Určuje, zda Type je typ 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

Testovaná.Type

Návraty

true je-li to Type ; Enum v opačném případě false.

Výjimky

type je odkaz null (Nothing v Visual Basic).

Platí pro