Roles Methods

Roles Methods

 

Namespace:   System.Web.Security
Assembly:  System.Web (in System.Web.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAddUsersToRole(String[], String)

Adds the specified users to the specified role.

System_CAPS_pubmethodSystem_CAPS_staticAddUsersToRoles(String[], String[])

Adds the specified users to the specified roles.

System_CAPS_pubmethodSystem_CAPS_staticAddUserToRole(String, String)

Adds the specified user to the specified role.

System_CAPS_pubmethodSystem_CAPS_staticAddUserToRoles(String, String[])

Adds the specified user to the specified roles.

System_CAPS_pubmethodSystem_CAPS_staticCreateRole(String)

Adds a new role to the data source.

System_CAPS_pubmethodSystem_CAPS_staticDeleteCookie()

Deletes the cookie where role names are cached.

System_CAPS_pubmethodSystem_CAPS_staticDeleteRole(String)

Removes a role from the data source.

System_CAPS_pubmethodSystem_CAPS_staticDeleteRole(String, Boolean)

Removes a role from the data source.

System_CAPS_pubmethodSystem_CAPS_staticFindUsersInRole(String, String)

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

System_CAPS_pubmethodSystem_CAPS_staticGetAllRoles()

Gets a list of all the roles for the application.

System_CAPS_pubmethodSystem_CAPS_staticGetRolesForUser()

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

System_CAPS_pubmethodSystem_CAPS_staticGetRolesForUser(String)

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

System_CAPS_pubmethodSystem_CAPS_staticGetUsersInRole(String)

Gets a list of users in the specified role.

System_CAPS_pubmethodSystem_CAPS_staticIsUserInRole(String)

Gets a value indicating whether the currently logged-on user is in the specified role. The API is only intended to be called within the context of an ASP.NET request thread, and in that sanctioned use case it is thread-safe.

System_CAPS_pubmethodSystem_CAPS_staticIsUserInRole(String, String)

Gets a value indicating whether the specified user is in the specified role. The API is only intended to be called within the context of an ASP.NET request thread, and in that sanctioned use case it is thread-safe.

System_CAPS_pubmethodSystem_CAPS_staticRemoveUserFromRole(String, String)

Removes the specified user from the specified role.

System_CAPS_pubmethodSystem_CAPS_staticRemoveUserFromRoles(String, String[])

Removes the specified user from the specified roles.

System_CAPS_pubmethodSystem_CAPS_staticRemoveUsersFromRole(String[], String)

Removes the specified users from the specified role.

System_CAPS_pubmethodSystem_CAPS_staticRemoveUsersFromRoles(String[], String[])

Removes the specified user names from the specified roles.

System_CAPS_pubmethodSystem_CAPS_staticRoleExists(String)

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

Return to top
Show:
© 2016 Microsoft