PublicAPI.Portal.Security.OrganizationItem.GetSubItemsByLvl ELMA API Documentation
Get all the organizational structure item subitmes by nest level
 
 
Syntax

public IEnumerable<OrganizationItem> GetSubItemsByLvl(
	OrganizationItem orgItem,
	int lvl
)

Parameters

orgItem
Type: OrganizationItem
Organization structure item. Object. Access path: PublicAPI.Portal.Security.OrganizationItem
lvl
Type: System Int32
Nesting level

Return Value

Type: IEnumerable OrganizationItem 
List of subitems
Examples

//load the organizational structure item by ID 
var orgItem = PublicAPI.Portal.Security.OrganizationItem.Load(3);

//get all the subitems by nest level. If there are not any, an empty list is returned 
var subItemList = PublicAPI.Portal.Security.OrganizationItemSecurity.GetSubItems(orgItem, 2);

//subItemList - list of all the organizational structure item subitems, two levels down
See Also