Click or drag to resize
EnumHelperGetEnumsByCategories Method
Gets enums with category attribute, which have given category name.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntax
C#
public static IEnumerable<Enum> GetEnumsByCategories(
	Type enumType,
	List<string> categories
)

Parameters

enumType
Type: SystemType
Enum type
categories
Type: System.Collections.GenericListString
Categories

Return Value

Type: IEnumerableEnum
Return enums with category attribute, with given category name.
See Also