PublicAPI.Portal.Security.OrganizationItem.GetSubItems ELMA API Documentation
Get all the subitems of an organizational structure item
 
 
Syntax

public IEnumerable<OrganizationItem> GetSubItems(
	OrganizationItem orgItem
)

Parameters

orgItem
Type: OrganizationItem
Organization structure item. Object. Access path: PublicAPI.Portal.Security.OrganizationItem

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. If there are not any, an empty list is returned 
var subItemList = PublicAPI.Portal.Security.OrganizationItemSecurity.GetSubItems(orgItem);

//subItemList - list of all the subitems of an organizational structure item
See Also