_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.

備註

這個屬性從 unmanaged 程式碼,是用於存取 managed 類別,並不會呼叫從 managed 程式碼。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.

適用於