Implemented interface member:
2 overrides of IsInRole
System.Security.Claims (1)
System\Security\Claims\GenericPrincipal.cs (1)
70public override bool IsInRole([NotNullWhen(true)] string? role)
System.Security.Principal.Windows (1)
artifacts\obj\System.Security.Principal.Windows\Debug\net9.0\System.Security.Principal.Windows.notsupported.cs (1)
284public override bool IsInRole(string role) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_Principal); }
7 references to IsInRole
Microsoft.AspNetCore.Authorization (1)
RolesAuthorizationRequirement.cs (1)
51if (context.User.IsInRole(role))
Microsoft.AspNetCore.Components.Authorization (1)
AuthenticationStateData.cs (1)
24/// Gets the value that identifies 'Role' claims. This is used when calling <see cref="ClaimsPrincipal.IsInRole"/>.
System.Security.Claims (5)
System\Security\Claims\ClaimsIdentity.cs (4)
117/// <param name="roleType">The <see cref="Claim.Type"/> used when performing logic for <see cref="ClaimsPrincipal.IsInRole"/>.</param> 130/// <param name="roleType">The <see cref="Claim.Type"/> used when performing logic for <see cref="ClaimsPrincipal.IsInRole"/>.</param> 144/// <param name="roleType">The <see cref="Claim.Type"/> used when performing logic for <see cref="ClaimsPrincipal.IsInRole"/>.</param> 392/// Gets the value that identifies 'Role' claims. This is used when calling <see cref="ClaimsPrincipal.IsInRole"/>.
System\Security\Claims\GenericPrincipal.cs (1)
82return base.IsInRole(role);