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

返回

Boolean

如果 trueType,则为 Enum;否则为 false

例外

type 为空引用(在 Visual Basic 中为 Nothing)。

适用于