System.Web.Security.Roles: Method Members

The methods of System.Web.Security.Roles are listed below. For a list of all members, see the Roles Members list.

See Also: Inherited members from System.Object

Public Methods

static
AddUsersToRole(string[], string)

Adds the specified users to the specified role.

static
AddUsersToRoles(string[], string[])

Adds the specified users to the specified roles.

static
AddUserToRole(string, string)

Adds the specified user to the specified role.

static
AddUserToRoles(string, string[])

Adds the specified user to the specified roles.

static
CreateRole(string)

Adds a new role to the data source.

static
DeleteCookie()

Deletes the cookie where role names are cached.

static
DeleteRole(string) : bool

Removes a role from the data source.

static
DeleteRole(string, bool) : bool

Removes a role from the data source.

static
FindUsersInRole(string, string) : string[]

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

static
GetAllRoles() : string[]

Gets a list of all the roles for the application.

static
GetRolesForUser() : string[]

Gets a list of the roles that the currently logged-on user is in.

static
GetRolesForUser(string) : string[]

Gets a list of the roles that a user is in.

static
GetUsersInRole(string) : string[]

Gets a list of users in the specified role.

static
IsUserInRole(string) : bool

Gets a value indicating whether the currently logged-on user is in the specified role.

static
IsUserInRole(string, string) : bool

Gets a value indicating whether the specified user is in the specified role.

static
RemoveUserFromRole(string, string)

Removes the specified user from the specified role.

static
RemoveUserFromRoles(string, string[])

Removes the specified user from the specified roles.

static
RemoveUsersFromRole(string[], string)

Removes the specified users from the specified role.

static
RemoveUsersFromRoles(string[], string[])

Removes the specified user names from the specified roles.

static
RoleExists(string) : bool

Gets a value indicating whether the specified role name already exists in the role data source.