Skip to main content

List

C#
1
2
3
public PagedList<Role> List(PagingOptions pagingOptions = null) { }

Remarks

Example

C#
1
2
3
4
5
6
7
8
9
using Zengenti.Contensis.Management; var client = ManagementClient.Create(); // Access the movie DB project var project = client.Projects.Get("movieDb"); // List the roles with the default paging options var roles = project.Security.Roles.List();

ListAsync

C#
1
2
3
public async Task<PagedList<Role>> ListAsync(PagingOptions pagingOptions = null) { }

Example

C#
1
2
3
4
5
6
7
8
9
using Zengenti.Contensis.Management; var client = ManagementClient.Create(); // Access the movie DB project var project = await client.Projects.GetAsync("movieDb"); // List the roles with specific paging options var roles = await project.Security.Roles.ListAsync(new PageOptions(pageIndex: 0, pageSize: 10));

Still need help?

New support request