C# Класс Nettiers.AdventureWorks.Contracts.ExtendedPrincipal

This class is used to extend the Thread.CurrentPrincipal object and add our own custom properties and methods.
Наследование: IPrincipal
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
CanPerformCommand ( System.Guid CommandGuid ) : bool

CanPerformCommand

CanPerformCommand ( string CommandGuid ) : bool

CanPerformCommand

ExtendedPrincipal ( IIdentity identity ) : System

Extended Principal Constructor

IsInRole ( System.Guid RoleGuid ) : bool

IsInRole

IsInRole ( string roleGuid ) : bool

IsInRole

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

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

CanPerformCommand
public CanPerformCommand ( System.Guid CommandGuid ) : bool
CommandGuid System.Guid Command Guid
Результат bool

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

CanPerformCommand
public CanPerformCommand ( string CommandGuid ) : bool
CommandGuid string Command Guid
Результат bool

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

Extended Principal Constructor
public ExtendedPrincipal ( IIdentity identity ) : System
identity IIdentity
Результат System

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

IsInRole
public IsInRole ( System.Guid RoleGuid ) : bool
RoleGuid System.Guid Role Guid
Результат bool

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

IsInRole
public IsInRole ( string roleGuid ) : bool
roleGuid string role Guid
Результат bool