C# Класс BgEngine.Security.Services.CodeFirstRoleServices

Показать файл Открыть проект

Открытые методы

Метод Описание
AddUsersToRoles ( string usernames, string rolenames ) : void
GetAllRoles ( ) : string[]
GetUsersInRole ( string role ) : string[]
IsUserInRole ( string user, string role ) : bool
RemoveUsersFromRoles ( string usernames, string rolenames ) : void
RoleExist ( string role ) : bool

Описание методов

AddUsersToRoles() публичный статический Метод

public static AddUsersToRoles ( string usernames, string rolenames ) : void
usernames string
rolenames string
Результат void

GetAllRoles() публичный статический Метод

public static GetAllRoles ( ) : string[]
Результат string[]

GetUsersInRole() публичный статический Метод

public static GetUsersInRole ( string role ) : string[]
role string
Результат string[]

IsUserInRole() публичный статический Метод

public static IsUserInRole ( string user, string role ) : bool
user string
role string
Результат bool

RemoveUsersFromRoles() публичный статический Метод

public static RemoveUsersFromRoles ( string usernames, string rolenames ) : void
usernames string
rolenames string
Результат void

RoleExist() публичный статический Метод

public static RoleExist ( string role ) : bool
role string
Результат bool