Skip to main content
C#
public PagedList<Group> List(SecurityListOptions listOptions = null, string query = null)
{    
}

Parameters

listOptions

Type: SecurityListOptions
The list options, page size, page index, etc.

query

Type: string
The optional group list query, which performs a basic contains on the group name.

Examples

C#
using Zengenti.Contensis.Management;
using Zengenti.Data;

// Create a client
var client = ManagementClient.Create();

SecurityListOptions listOptions = new SecurityListOptions 
{
    PageOptions = new PageOptions(0, 10)
};

// List the groups
PagedList<Group> groups = client.Security.Groups.List(listOptions);

List groups specifying page options asynchronously.

Syntax

C#
public async Task<PagedList<Group>> ListAsync(SecurityListOptions listOptions = null, string query = null)
{    
}

Parameters

listOptions

Type: SecurityListOptions
The list options, page size, page index, etc.

query

Type: string
The optional group list query, which performs a basic contains on the group name.

Examples

C#
using Zengenti.Contensis.Management;
using Zengenti.Data;

// Create a client
var client = ManagementClient.Create();

SecurityListOptions listOptions = new SecurityListOptions 
{
    PageOptions = new PageOptions(0, 10)
};

// List the groups
PagedList<Group> groups = await client.Security.Groups.ListAsync(listOptions);

List groups specifying a query to filter groups by.

Syntax

C#
public PagedList<Group> List(SecurityListOptions listOptions = null, string query = null)
{    
}

Parameters

listOptions

Type: SecurityListOptions
The list options, page size, page index, etc.

query

Type: string
The optional group list query, which performs a basic contains on the group name.

Examples

C#
using Zengenti.Contensis.Management;
using Zengenti.Data;

// Create a client
var client = ManagementClient.Create();

SecurityListOptions listOptions = new SecurityListOptions 
{
    PageOptions = new PageOptions(0, 10)
};

// List the groups with a query value of "fight club"
PagedList<Group> groups = client.Security.Groups.List(listOptions, "fight club");

List groups specifying a query to filter groups by asynchronously.

Syntax

C#
public async Task<PagedList<Group>> ListAsync(SecurityListOptions listOptions = null, string query = null)
{    
}

Parameters

listOptions

Type: SecurityListOptions
The list options, page size, page index, etc.

query

Type: string
The optional group list query, which performs a basic contains on the group name.

Examples

C#
using Zengenti.Contensis.Management;
using Zengenti.Data;

// Create a client
var client = ManagementClient.Create();

SecurityListOptions listOptions = new SecurityListOptions 
{
    PageOptions = new PageOptions(0, 10)
};

// List the groups with a query value of "fight club"
PagedList<Group> groups = await client.Security.Groups.ListAsync(listOptions, "fight club");

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request