Click or drag to resize

IGroupGetUsersCount Method

Returns the count of users directly members of the current group.

Namespace:  AskiaPortalCmn
Assembly:  AskiaPortalCmn (in AskiaPortalCmn.dll) Version: 1.7.0-build068
Syntax
int GetUsersCount(
	QueryAllFilter filter = QueryAllFilter.NotDeleted
)

Parameters

filter (Optional)
Type: AskiaPortalCmn.CommonQueryAllFilter
Filter the user to take in account.

Return Value

Type: Int32
Returns the count of users associated with the group.
Examples

Get the count of users directly members of the current group

var group = GroupFactory.FindById(context, 3);
var usersCount = group.GetUsersCount();
Console.WriteLine($"There are {usersCount} users associated with the group {group.Name}");
See Also