TypeProvider.IsEnum(Type) Método

Definição

Indica se um Type é do Enum do tipo.Indicates whether a Type is of type 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

Parâmetros

type
Type

O Type a ser testado.The Type to be tested.

Retornos

Boolean

true se o Type é um Enum, caso contrário, false.true if the Type is an Enum ; otherwise false.

Exceções

type é uma referência nula (Nothing no Visual Basic).type is a null reference (Nothing in Visual Basic).

Aplica-se a