C# Class BgEngine.Infraestructure.Security.CodeFirstRoleProvider

Inheritance: System.Web.Security.RoleProvider
Afficher le fichier Open project: yagopv/BgEngine Class Usage Examples

Méthodes publiques

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[]
GetRolesForUser ( string userName ) : string[]
GetUsersInRole ( string roleName ) : string[]
Initialize ( string name, System config ) : void
IsUserInRole ( string userName, string roleName ) : bool
RemoveUsersFromRoles ( string usernames, string roleNames ) : void
RoleExists ( string roleName ) : bool

Private Methods

Méthode Description
CreateArgumentNullOrEmptyException ( string paramName ) : ArgumentException

Method Details

AddUsersToRoles() public méthode

public AddUsersToRoles ( string usernames, string roleNames ) : void
usernames string
roleNames string
Résultat void

CreateRole() public méthode

public CreateRole ( string roleName ) : void
roleName string
Résultat void

DeleteRole() public méthode

public DeleteRole ( string roleName, bool throwOnPopulatedRole ) : bool
roleName string
throwOnPopulatedRole bool
Résultat bool

FindUsersInRole() public méthode

public FindUsersInRole ( string roleName, string usernameToMatch ) : string[]
roleName string
usernameToMatch string
Résultat string[]

GetAllRoles() public méthode

public GetAllRoles ( ) : string[]
Résultat string[]

GetRolesForUser() public méthode

public GetRolesForUser ( string userName ) : string[]
userName string
Résultat string[]

GetUsersInRole() public méthode

public GetUsersInRole ( string roleName ) : string[]
roleName string
Résultat string[]

Initialize() public méthode

public Initialize ( string name, System config ) : void
name string
config System
Résultat void

IsUserInRole() public méthode

public IsUserInRole ( string userName, string roleName ) : bool
userName string
roleName string
Résultat bool

RemoveUsersFromRoles() public méthode

public RemoveUsersFromRoles ( string usernames, string roleNames ) : void
usernames string
roleNames string
Résultat void

RoleExists() public méthode

public RoleExists ( string roleName ) : bool
roleName string
Résultat bool