메소드 | 설명 | |
---|---|---|
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
|
메소드 | 설명 | |
---|---|---|
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. |
리턴 | void |
public CreateRole ( string roleName ) : void | ||
roleName | string | The name of the role to create. |
리턴 | 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 |
리턴 | bool |
public FindUsersInRole ( string roleName, string usernameToMatch ) : string[] | ||
roleName | string | The role to search in. |
usernameToMatch | string | The user name to search for. |
리턴 | string[] |
public GetRolesForUser ( string username ) : string[] | ||
username | string | The user to return a list of roles for. |
리턴 | string[] |
public GetUsersInRole ( string roleName ) : string[] | ||
roleName | string | The name of the role to get the list of users for. |
리턴 | string[] |
public Initialize ( string name, |
||
name | string | /// Configuration name /// |
config | /// Configuration settings /// | |
리턴 | void |
public IsUserInRole ( string username, string roleName ) : bool | ||
username | string | The user name to search for. |
roleName | string | The role to search in. |
리턴 | 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. |
리턴 | void |
public RoleExists ( string roleName ) : bool | ||
roleName | string | The name of the role to search for in the data source. |
리턴 | bool |