C# Class ERP.Web.User

Extensions to the User class.
Afficher le fichier Open project: arthurgfonseca/ERP-Grupo5

Private Properties

Свойство Type Description
OnCreated void
OnFriendlyNameChanged void
OnFriendlyNameChanging void
OnNameChanged void
OnNameChanging void
OnRolesChanged void
OnRolesChanging void

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
OnPropertyChanged ( PropertyChangedEventArgs e ) : void

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

Private Methods

Méthode Description
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

Method Details

GetIdentity() public méthode

Computes a value from the key fields that uniquely identifies this entity instance.
public GetIdentity ( ) : object
Résultat object

IsInRole() public méthode

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.
Résultat bool

OnPropertyChanged() protected méthode

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.
Résultat void

User() public méthode

Initializes a new instance of the User class.
public User ( ) : System
Résultat System