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

Namespace:  Novalys.VisualGuard.Security.WebForm
Assembly:  Novalys.VisualGuard.Security.WebForm (in Novalys.VisualGuard.Security.WebForm.dll) Version: 3.2.912.1 (3.2.912.01)

Syntax

C#
public override string[] FindUsersInRole(
	string roleName,
	string usernameToMatch
)
Visual Basic (Declaration)
Public Overrides Function FindUsersInRole ( _
	roleName As String, _
	usernameToMatch As String _
) As String()

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 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

ExceptionCondition
System..::.ArgumentNullExceptionroleName is null (Nothing in Visual Basic).

-or-

usernameToMatch is null.
System..::.ArgumentExceptionroleName is an empty string.

-or-

usernameToMatch is greater than 64 characters.

See Also