此浏览器不再受支持。
请升级到 Microsoft Edge 以使用最新的功能、安全更新和技术支持。
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指示 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。
如果 true 为 Type,则为 Enum;否则为 false。
true
false
type 为空引用(在 Visual Basic 中为 Nothing)。
type
Nothing