ClaimActionCollectionMapExtensions.DeleteClaims 方法

定义

从 ClaimsIdentity 中删除具有给定 claimTypes 的所有声明。

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

参数

claimTypes
String[]

要删除的声明类型。

适用于