C# Class System.Security.Principal.GenericPrincipal

Inheritance: System.Security.Claims.ClaimsPrincipal
Afficher le fichier Open project: dotnet/corefx Class Usage Examples

Méthodes publiques

Méthode Description
GenericPrincipal ( System identity, string roles )
GenericPrincipal ( IIdentity identity, string roles ) : System
IsInRole ( string role ) : bool

Private Methods

Méthode Description
AddIdentityWithRoles ( IIdentity identity, string roles ) : void

helper method to add roles

Method Details

GenericPrincipal() public méthode

public GenericPrincipal ( System identity, string roles )
identity System
roles string

GenericPrincipal() public méthode

public GenericPrincipal ( IIdentity identity, string roles ) : System
identity IIdentity
roles string
Résultat System

IsInRole() public méthode

public IsInRole ( string role ) : bool
role string
Résultat bool