This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.

Syntax

C# Copy imageCopy Code
                                  public class SqlRoleProvider
Visual Basic (Declaration) Copy imageCopy Code
                                  Public Class SqlRoleProvider

The type exposes the following methods.

Public Methods

  Name Description
Public method AddUsersToRoles
Adds the specified user names to the specified roles.
(Overrides RoleProvider..::AddUsersToRoles(array<String>[]()[][], array<String>[]()[][]).)
Public method CreateRole
Adds a new role to the data source.
(Overrides RoleProvider..::CreateRole(String).)
Public method DeleteRole
Removes a role from the data source.
(Overrides RoleProvider..::DeleteRole(String, Boolean).)
Public method Equals (Inherited from Object.)
Public method FindUsersInRole
Gets an array of user names in a role where the user name contains the specified user name to match.
(Overrides RoleProvider..::FindUsersInRole(String, String).)
Public method GetAllRoles
Gets a list of all the roles.
(Overrides RoleProvider..::GetAllRoles()()()().)
Public method GetHashCode (Inherited from Object.)
Public method GetRolesForUser
Gets a list of the roles that a specified user is in.
(Overrides RoleProvider..::GetRolesForUser(String).)
Public method GetType (Inherited from Object.)
Public method GetUsersInRole
Gets a list of users in the specified role.
(Overrides RoleProvider..::GetUsersInRole(String).)
Public method Initialize
Public method IsUserInRole
Gets a value indicating whether the specified user is in the specified role.
(Overrides RoleProvider..::IsUserInRole(String, String).)
Public method RemoveUsersFromRoles
Removes the specified user names from the specified roles.
(Overrides RoleProvider..::RemoveUsersFromRoles(array<String>[]()[][], array<String>[]()[][]).)
Public method RoleExists
Gets a value indicating whether the specified role name already exists in the role data source.
(Overrides RoleProvider..::RoleExists(String).)
Public method SynchronizeWithExternalRolesForUser
Synchronizes the Smartsite user groups the user is in with the externally managed roles. Externally managed roles are marked in the UserGroups table by setting the value in the ExternallyManaged column to true.
Public method ToString (Inherited from Object.)

Protected Methods

  Name Description
Protected method Finalize (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)

See Also

Advanced