Свойство | Type | Description | |
---|---|---|---|
GetClient | RoleServiceClient |
Méthode | Description | |
---|---|---|
AddUsersToRoles ( string usernames, string roleNames ) : void | ||
CreateRole ( string roleName ) : void | ||
DeleteRole ( string roleName, bool throwOnPopulatedRole ) : bool | ||
FindUsersInRole ( string roleName, string usernameToMatch ) : string[] | ||
GetAllRoles ( ) : string[] |
Gets all roles in the application context
|
|
GetRolesForUser ( string username ) : string[] |
Gets all roles for the user in the context of this application
|
|
GetUsersInRole ( string roleName ) : string[] |
Gets all users that are in the current role in the application context
|
|
InitWithoutConfig ( string appName, string serviceUrl, string authToken ) : void |
Just set the appname and connection string
|
|
Initialize ( string name, |
Initialized from the web.config file when the application loads for the first time.
|
|
IsUserInRole ( string username, string roleName ) : bool |
Determine if a user is in the supplied role in this application.
|
|
RemoveUsersFromRoles ( string usernames, string roleNames ) : void | ||
RoleExists ( string roleName ) : bool |
Find out if a role exists within an application context A return of false doesn't mean that the role doesn't exist in the db, just that it doesn't exists withing the context of this application |
Méthode | Description | |
---|---|---|
GetClient ( ) : RoleServiceClient |
public AddUsersToRoles ( string usernames, string roleNames ) : void | ||
usernames | string | |
roleNames | string | |
Résultat | void |
public CreateRole ( string roleName ) : void | ||
roleName | string | |
Résultat | void |
public DeleteRole ( string roleName, bool throwOnPopulatedRole ) : bool | ||
roleName | string | |
throwOnPopulatedRole | bool | |
Résultat | bool |
public FindUsersInRole ( string roleName, string usernameToMatch ) : string[] | ||
roleName | string | |
usernameToMatch | string | |
Résultat | string[] |
public GetRolesForUser ( string username ) : string[] | ||
username | string | LoginID to get the roles for |
Résultat | string[] |
public GetUsersInRole ( string roleName ) : string[] | ||
roleName | string | |
Résultat | string[] |
public InitWithoutConfig ( string appName, string serviceUrl, string authToken ) : void | ||
appName | string | |
serviceUrl | string | |
authToken | string | |
Résultat | void |
public Initialize ( string name, |
||
name | string | The name of the role provider |
config | Collection of keys. They need to include ApplicationName, ConnectionString. /// Description is optional | |
Résultat | void |
public IsUserInRole ( string username, string roleName ) : bool | ||
username | string | LoginID |
roleName | string | RoleName |
Résultat | bool |
public RemoveUsersFromRoles ( string usernames, string roleNames ) : void | ||
usernames | string | |
roleNames | string | |
Résultat | void |
public RoleExists ( string roleName ) : bool | ||
roleName | string | RoleName |
Résultat | bool |