Roles.GetUsersInRole Method
.NET Framework 2.0
Gets a list of users in the specified role.
Namespace: System.Web.Security
Assembly: System.Web (in system.web.dll)
Roles Members
System.Web.Security Namespace
Assembly: System.Web (in system.web.dll)
public static String[] GetUsersInRole ( String roleName )
public static function GetUsersInRole ( roleName : String ) : String[]
Not applicable.
Parameters
- roleName
The role to get the list of users for.
Return Value
A string array containing the names of all the users who are members of the specified role.The GetUsersInRole method calls the GetUsersInRole method of the default role provider to retrieve the user names associated with a role from the data source. Only the roles for the application that is specified in the ApplicationName property are retrieved.
Reference
Roles ClassRoles Members
System.Web.Security Namespace
Other Resources
Understanding Role ManagementCommunity Additions
ADD
Show: