Click or drag to resize

IUserProfileGetUsersCount Method

Returns the count of users associated with the current user profile.

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 user profile.
Examples

Get the count of users associated with the current user profile

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