Method CreateMenu
CreateMenu<MenuTaskDefinitionType>(IMenuService, string)
Creates a new menu of the specified type and adds it to the menu service.
public static MenuTaskDefinitionType CreateMenu<MenuTaskDefinitionType>(this IMenuService menuService, string groupname) where MenuTaskDefinitionType : IMenuModel
Parameters
menuService
IMenuServiceThe menu service.
groupname
stringThe name of the group where the menu will be added.
Returns
- MenuTaskDefinitionType
The newly created menu.
Type Parameters
MenuTaskDefinitionType
The type of the menu.