Gets an array of user names in a role where the user name contains the specified user name to match.

Namespace:  EPiServer.Security
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
public override string[] FindUsersInRole(
	string roleName,
	string usernameToMatch
)

Parameters

roleName
Type: System..::.String
The role to search in.
usernameToMatch
Type: System..::.String
The user name to search for.

Return Value

A string array containing the names of all the users where the user name matches usernameToMatch and the user is a member of the specified role.

Remarks

The usernameToMatch can handle wildcard search according to the rules for the SQL LIKE operator. I e setting usernameToMatch to "adam%" will match any username staring with adam.

See Also