Method | Description | |
---|---|---|
AddUsersToRoles ( string usernames, string roleNames ) : void |
Adds all users in user array to all roles in role array
|
|
CreateRole ( string roleName ) : void |
Adds a new role to the database
|
|
DeleteRole ( string roleName, bool throwOnPopulatedRole ) : bool |
Removes a role from database
|
|
FindUsersInRole ( string roleName, string usernameToMatch ) : string[] |
Returns all users in selected role with names that match usernameToMatch
|
|
GetAllRoles ( ) : string[] |
Returns array of all roles in database
|
|
GetRolesForUser ( string username ) : string[] |
Return an array of roles that user is in
|
|
GetUsersInRole ( string roleName ) : string[] |
Returns array of users in selected role
|
|
Initialize ( string name, |
Initializes the provider
|
|
IsUserInRole ( string username, string roleName ) : bool |
Check to see if user is in a role
|
|
RemoveUsersFromRoles ( string usernames, string roleNames ) : void |
Removes all users in user array from all roles in role array
|
|
RoleExists ( string roleName ) : bool |
Checks to see if role exists
|
Method | Description | |
---|---|---|
CreateConnection ( ) : |
||
FormatParamName ( string parameterName ) : string |
Returns a formatted parameter name to include this DbRoleProvider instance's paramPrefix.
|
public AddUsersToRoles ( string usernames, string roleNames ) : void | ||
usernames | string | A string array of user names to be added to the specified roles. |
roleNames | string | A string array of the role names to add the specified user names to. |
return | void |
public CreateRole ( string roleName ) : void | ||
roleName | string | The name of the role to create. |
return | void |
public DeleteRole ( string roleName, bool throwOnPopulatedRole ) : bool | ||
roleName | string | The name of the role to delete. |
throwOnPopulatedRole | bool | If true, throw an exception if |
return | bool |
public FindUsersInRole ( string roleName, string usernameToMatch ) : string[] | ||
roleName | string | The role to search in. |
usernameToMatch | string | The user name to search for. |
return | string[] |
public GetRolesForUser ( string username ) : string[] | ||
username | string | The user to return a list of roles for. |
return | string[] |
public GetUsersInRole ( string roleName ) : string[] | ||
roleName | string | The name of the role to get the list of users for. |
return | string[] |
public Initialize ( string name, |
||
name | string | /// Configuration name /// |
config | /// Configuration settings /// | |
return | void |
public IsUserInRole ( string username, string roleName ) : bool | ||
username | string | The user name to search for. |
roleName | string | The role to search in. |
return | bool |
public RemoveUsersFromRoles ( string usernames, string roleNames ) : void | ||
usernames | string | A string array of user names to be removed from the specified roles. |
roleNames | string | A string array of role names to remove the specified user names from. |
return | void |
public RoleExists ( string roleName ) : bool | ||
roleName | string | The name of the role to search for in the data source. |
return | bool |