public PagedList<Role> List(PagingOptions pagingOptions = null)
{
}
Remarks
Example
CSHARP
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
CSHARP
1
2
3
public async Task<PagedList<Role>> ListAsync(PagingOptions pagingOptions = null)
{
}
Example
CSHARP
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));