DefaultRoleProvider.FindUsersInRole Method (String, String)
Finds users in a role.
Namespace: System.Web.Providers
Assembly: System.Web.Providers (in System.Web.Providers.dll)
Syntax
public override string[] FindUsersInRole(
string roleName,
string usernameToMatch
)
public:
virtual array<String^>^ FindUsersInRole(
String^ roleName,
String^ usernameToMatch
) override
override FindUsersInRole :
roleName:string *
usernameToMatch:string -> string[]
Public Overrides Function FindUsersInRole (
roleName As String,
usernameToMatch As String
) As String()
Parameters
roleName
Type: System.StringThe role to search in.
usernameToMatch
Type: System.StringThe user name to search for.
Return Value
Type: System.String[]
The names of all the users whose user name matches usernameToMatch and who are members of the specified role.
See Also
DefaultRoleProvider Class
System.Web.Providers Namespace
ASP.NET Identity
Return to top