ClaimActionCollectionMapExtensions.DeleteClaim Method

Definition

Delete all claims from the given ClaimsIdentity with the given ClaimType.

public:
[System::Runtime::CompilerServices::Extension]
 static void DeleteClaim(Microsoft::AspNetCore::Authentication::OAuth::Claims::ClaimActionCollection ^ collection, System::String ^ claimType);
public static void DeleteClaim (this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType);
static member DeleteClaim : Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection * string -> unit
<Extension()>
Public Sub DeleteClaim (collection As ClaimActionCollection, claimType As String)

Parameters

claimType
String

The claim type to delete

Applies to