EnumHelperGetEnums Method

取得列舉清單所有項目

Definition

Namespace: eBizprise.Framework
Assembly: eBizprise.Framework.Enum.EnumHelper (in eBizprise.Framework.Enum.EnumHelper.dll) Version: 25.0.0.0+adf38c4ccb2bf98d8ad258a6278302b5e05a94ed
C#
public static List<EnumInformation> GetEnums(
	this Enum enumItem
)

Parameters

enumItem  Enum

[Missing <param name="enumItem"/> documentation for "M:eBizprise.Framework.EnumHelper.GetEnums(System.Enum)"]

Return Value

ListEnumInformation
List<T>

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Enum. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

Example

C#
List<GroupType> groupType = GroupType.Department.GetEnums();

Revision History

DateVersionDescription
2020/03/241.0.5.0增加說明文字支援
2020/05/051.0.7.0修正上層選單無識別碼時異常
2025/07/162.2.1.0調整識別碼資料類型為整數格式
2025/07/302.2.2.0調整列舉集合取得方式及調用語法
2025/09/1825.0.0.0彙整2025年初版

See Also