Bewerken

Delen via


TypeProvider.IsEnum(Type) Method

Definition

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

Parameters

type
Type

The Type to be tested.

Returns

true if the Type is an Enum ; otherwise false.

Exceptions

type is a null reference (Nothing in Visual Basic).

Applies to