Share via


SimpleRoleProvider.FindUsersInRole(String, String) Method

Definition

Returns all of the specified users who are in the specified role.

public override string[] FindUsersInRole (string roleName, string usernameToMatch);
override this.FindUsersInRole : string * string -> string[]
Public Overrides Function FindUsersInRole (roleName As String, usernameToMatch As String) As String()

Parameters

roleName
String

The role to search in.

usernameToMatch
String

The user name to search for.

Returns

String[]

The names of all of the users where the user name matches usernameToMatch and the user is in the specified role.

Applies to