ClaimActionCollectionMapExtensions.DeleteClaim 方法

定义

使用给定 ClaimType 删除给定 ClaimsIdentity 中的所有声明。

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)

参数

claimType
String

要删除的声明类型

适用于