EnumHelperGetId 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 int? GetId(
	this Enum enumItem
)

Parameters

enumItem  Enum
列舉項目

Return Value

NullableInt32
int?

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#
var departmentId = GroupType.Department.GetId();

Revision History

DateVersionDescription
2020/03/121.0.4.0拆分EnumHelper及EnumModelHelper
2025/07/162.2.1.0調整識別碼資料類型為整數格式
2025/09/1825.0.0.0彙整2025年初版

See Also