ClaimActionCollectionMapExtensions.DeleteClaims Method

Definition

Delete all claims from the ClaimsIdentity with the given claimTypes.

C#
public static void DeleteClaims (this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, params string[] claimTypes);

Parameters

claimTypes
String[]

The claim types to delete.

Applies to

Product Versies
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0