Cats.Services.Security.UserIdentity.IsInRole C# (CSharp) Méthode

IsInRole() private méthode

private IsInRole ( string role ) : bool
role string
Résultat bool
        internal bool IsInRole(string role)
        {
            return roles.Contains(role);
        }

Usage Example

Exemple #1
0
 public bool IsInRole(string role)
 {
     return(currentIdentity.IsInRole(role));
 }