C# Class Shaml.Membership.NHRoleProvider

Inheritance: System.Web.Security.RoleProvider
显示文件 Open project: sztupy/shaml

Public Methods

Method Description
AddUsersToRoles ( string usernames, string roleNames ) : void

RoleProvider.AddUsersToRoles

CreateRole ( string roleName ) : void

RoleProvider.CreateRole

DeleteRole ( string roleName, bool throwOnPopulatedRole ) : bool

RoleProvider.DeleteRole

FindUsersInRole ( string roleName, string usernameToMatch ) : string[]

RoleProvider.FindUsersInRole

GetAllRoles ( ) : string[]

RoleProvider.GetAllRoles

GetRolesForUser ( string username ) : string[]

RoleProvider.GetRolesForUser

GetUsersInRole ( string roleName ) : string[]

RoleProvider.GetUsersInRole

Initialize ( string name, NameValueCollection config ) : void

System.Configuration.Provider.ProviderBase.Initialize Method

IsUserInRole ( string username, string roleName ) : bool

RoleProvider.IsUserInRole

RemoveUsersFromRoles ( string usernames, string roleNames ) : void

RoleProvider.RemoveUsersFromRoles

RoleExists ( string roleName ) : bool

RoleProvider.RoleExists

Method Details

AddUsersToRoles() public method

RoleProvider.AddUsersToRoles
public AddUsersToRoles ( string usernames, string roleNames ) : void
usernames string
roleNames string
return void

CreateRole() public method

RoleProvider.CreateRole
public CreateRole ( string roleName ) : void
roleName string
return void

DeleteRole() public method

RoleProvider.DeleteRole
public DeleteRole ( string roleName, bool throwOnPopulatedRole ) : bool
roleName string
throwOnPopulatedRole bool
return bool

FindUsersInRole() public method

RoleProvider.FindUsersInRole
public FindUsersInRole ( string roleName, string usernameToMatch ) : string[]
roleName string
usernameToMatch string
return string[]

GetAllRoles() public method

RoleProvider.GetAllRoles
public GetAllRoles ( ) : string[]
return string[]

GetRolesForUser() public method

RoleProvider.GetRolesForUser
public GetRolesForUser ( string username ) : string[]
username string
return string[]

GetUsersInRole() public method

RoleProvider.GetUsersInRole
public GetUsersInRole ( string roleName ) : string[]
roleName string
return string[]

Initialize() public method

System.Configuration.Provider.ProviderBase.Initialize Method
public Initialize ( string name, NameValueCollection config ) : void
name string
config System.Collections.Specialized.NameValueCollection
return void

IsUserInRole() public method

RoleProvider.IsUserInRole
public IsUserInRole ( string username, string roleName ) : bool
username string
roleName string
return bool

RemoveUsersFromRoles() public method

RoleProvider.RemoveUsersFromRoles
public RemoveUsersFromRoles ( string usernames, string roleNames ) : void
usernames string
roleNames string
return void

RoleExists() public method

RoleProvider.RoleExists
public RoleExists ( string roleName ) : bool
roleName string
return bool