TypeProvider.IsEnum(Type) 方法

定义

指示类型 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

参数

type
Type

Type要测试的。

返回

true 如果为 , TypeEnum 则为 ;否则 false为 。

例外

type是空引用(Visual Basic 中的 Nothing)。

适用于