Query(String, UserRoles):IEnumerable

Searches for users based on a pattern and the expected roles.

This method searches for users whose usernames correspond to the indicated pattern. Based on the pattern, the search looks for users whose usernames begin with the indicated pattern.

The users found are narrowed down further to the expected roles.

Return type: System.Collections.IEnumerable

Parameter

mask

Type: System.String

This parameter is the pattern that is to be searched for in the username.

expectedRoles

Type: UserRoles

This parameter contains the roles a user must have in order to be found with this search.