List with page options
1
2
3
public PagedList<Group> Children(SecurityListOptions listOptions = null)
{
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using Zengenti.Contensis.Management;
// Create a client
var client = ManagementClient.Create();
Group systemAdministrators = client.Security.Groups.Get("System Administrators");
// Setup the list options, setting a page size of 10 and ordering by group name
SecurityListOptions listOptions = new SecurityListOptions
{
PageOptions = new PageOptions(0, 10),
Order = "name"
};
// List the child groups
PagedList<Group> groups = systemAdministrators.Children(listOptions);
List with page options async
1
2
3
public Task<PagedList<Group>> ChildrenAsync(SecurityListOptions listOptions = null)
{
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using Zengenti.Contensis.Management;
// Create a client
var client = ManagementClient.Create();
Group systemAdministrators = await client.Security.Groups.GetAsync("System Administrators");
// Setup the list options, setting a page size of 10 and ordering by group name
SecurityListOptions listOptions = new SecurityListOptions
{
PageOptions = new PageOptions(0, 10),
Order = "name"
};
// List the child groups
PagedList<Group> groups = await systemAdministrators.ChildrenAsync(listOptions);