EnumHelperGetParentId 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? GetParentId(
	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 departmentCodeTableId = GroupType.Department.GetParentId();

Revision History

DateVersionDescription
2025/08/012.2.3.0新增取得父項識別碼功能
2025/09/1825.0.0.0彙整2025年初版

See Also