Click or drag to resize

IGroupGetChildrenGroupIds Method

Returns the identifiers of groups directly children of the current group.

Namespace:  AskiaPortalCmn
Assembly:  AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax
IList<int> GetChildrenGroupIds()

Return Value

Type: IListInt32
Returns the list of user identifiers.
Examples

Get the list of groups directly children of the current group

var group = GroupFactory.FindById(context, 3);
var childGroupIds = group.GetChildrenGroupIds();
foreach(int groupId in childGroupIds)
{
    Console.WriteLine($"Group id: {groupId}");
}
See Also