_Type.IsEnum _Type.IsEnum _Type.IsEnum _Type.IsEnum Property

定义

为 COM 对象提供对 IsEnum 属性的与版本无关的访问。Provides COM objects with version-independent access to the IsEnum property.

public:
 property bool IsEnum { bool get(); };
public bool IsEnum { get; }
member this.IsEnum : bool
Public ReadOnly Property IsEnum As Boolean

属性值

如果当前 true 表示枚举,则为 Type;否则为 falsetrue if the current Type represents an enumeration; otherwise, false.

注解

此属性是用于访问托管类到从非托管代码,不应从托管代码调用。This property is for access to managed classes from unmanaged code, and should not be called from managed code.

Type.IsEnum属性获取一个值,该值指示是否当前Type表示枚举。The Type.IsEnum property gets a value indicating whether the current Type represents an enumeration.

适用于