System.Web.Security.Roles Members

The members of System.Web.Security.Roles are listed below.

See Also: Inherited members from System.Object

Public Properties

static
ApplicationNamestring.

Gets or sets the name of the application to store and retrieve role information for.

[read-only]
static
CacheRolesInCookiebool.

Gets a value indicating whether the current user's roles are cached in a cookie.

[read-only]
static
CookieNamestring.

Gets the name of the cookie where role names are cached.

[read-only]
static
CookiePathstring.

Gets the path for the cached role names cookie.

[read-only]
static
CookieProtectionValueCookieProtection.

Gets a value that indicates how role names cached in a cookie are protected.

[read-only]
static
CookieRequireSSLbool.

Gets a value indicating whether the role names cookie requires SSL in order to be returned to the server.

[read-only]
static
CookieSlidingExpirationbool.

Indicates whether the role names cookie expiration date and time will be reset periodically.

[read-only]
static
CookieTimeoutint.

Gets the number of minutes before the roles cookie expires.

[read-only]
static
CreatePersistentCookiebool.

Gets a value indicating whether the role-names cookie is session-based or persistent.

[read-only]
static
Domainstring.

Gets the value of the domain of the role-names cookie.

[read-only]
static
Enabledbool.

Gets or sets a value indicating whether role management is enabled for the current Web application.

[read-only]
static
MaxCachedResultsint.

Gets the maximum number of role names to be cached for a user.

[read-only]
static
ProviderRoleProvider.

Gets the default role provider for the application.

[read-only]
static
ProvidersRoleProviderCollection.

Gets a collection of the role providers for the ASP.NET application.

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.