C# Класс ERP.Web.User

Extensions to the User class.
Показать файл Открыть проект

Private Properties

Свойство Тип Описание
OnCreated void
OnFriendlyNameChanged void
OnFriendlyNameChanging void
OnNameChanged void
OnNameChanging void
OnRolesChanged void
OnRolesChanging void

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

Метод Описание
GetIdentity ( ) : object

Computes a value from the key fields that uniquely identifies this entity instance.

IsInRole ( string role ) : bool

Return whether the principal is in the role.

Returns whether the specified role is contained in the roles. This implementation is case sensitive.

User ( ) : System

Initializes a new instance of the User class.

Защищенные методы

Метод Описание
OnPropertyChanged ( PropertyChangedEventArgs e ) : void

Override of the OnPropertyChanged method that generates property change notifications when User.DisplayName changes.

Приватные методы

Метод Описание
OnCreated ( ) : void

This method is invoked from the constructor once initialization is complete and can be used for further object setup.

OnFriendlyNameChanged ( ) : void
OnFriendlyNameChanging ( string value ) : void
OnNameChanged ( ) : void
OnNameChanging ( string value ) : void
OnRolesChanged ( ) : void
OnRolesChanging ( IEnumerable value ) : void

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

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

Computes a value from the key fields that uniquely identifies this entity instance.
public GetIdentity ( ) : object
Результат object

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

Return whether the principal is in the role.
Returns whether the specified role is contained in the roles. This implementation is case sensitive.
public IsInRole ( string role ) : bool
role string The name of the role for which to check membership.
Результат bool

OnPropertyChanged() защищенный Метод

Override of the OnPropertyChanged method that generates property change notifications when User.DisplayName changes.
protected OnPropertyChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs The property change event args.
Результат void

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

Initializes a new instance of the User class.
public User ( ) : System
Результат System