C# Класс GSF.Security.SecurityPrincipal

A class that implements IPrincipal interface to facilitate custom role-based security.
Наследование: IPrincipal
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
IsInRole ( string roles ) : bool

Determines whether the user is a member of either of the specified roles.

SecurityPrincipal ( SecurityIdentity identity ) : System

Initializes a new instance of the SecurityPrincipal class.

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

IsInRole() публичный Метод

Determines whether the user is a member of either of the specified roles.
public IsInRole ( string roles ) : bool
roles string Comma separated list of roles to check.
Результат bool

SecurityPrincipal() публичный Метод

Initializes a new instance of the SecurityPrincipal class.
Value specified for is null.
public SecurityPrincipal ( SecurityIdentity identity ) : System
identity SecurityIdentity An object.
Результат System