Compartilhar via


TypeProvider.IsEnum(Type) Método

Definição

Indica se um Type é do Enum do tipo.

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

Parâmetros

type
Type

O Type a ser testado.

Retornos

Boolean

true se o Type é um Enum, caso contrário, false.

Exceções

type é uma referência nula (Nothing no Visual Basic).

Aplica-se a