Visual Guard Class Library Documentation

VGRoleProvider.FindUsersInRole Method 

Gets a list of users in a specified role where the user name contains the specified user name to match.

public override string[] FindUsersInRole(
   String roleName,
   String usernameToMatch
);

Parameters

roleName
The role to search in.
usernameToMatch
The user name to search for.

Return Value

A string array containing the names of all the users whose user name matches usernameToMatch and who are members of the specified role.

Remarks

Wildcards such as asterisks, question, percent, underscore marks can be used in the usernameToMatch parameter value.

Exceptions

Exception Type Condition
ArgumentNullException roleName is null (Nothing in Visual Basic).

-or-

usernameToMatch is null.
ArgumentException roleName is an empty string.

-or-

usernameToMatch is greater than 64 characters.

See Also

VGRoleProvider Class | Novalys.VisualGuard.Security.WebForm Namespace