System.Web.Security.Roles.GetUsersInRole Method

Gets a list of users in the specified role.

Syntax

public static string[] GetUsersInRole (string rolename)

Parameters

rolename
Documentation for this section has not yet been entered.

Returns

A string array containing the names of all the users who are members of the specified role.

Remarks

The Roles.GetUsersInRole(string) method calls the RoleProvider.GetUsersInRole(string) 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 Roles.ApplicationName property are retrieved.

Requirements

Namespace: System.Web.Security
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0