共用方式為


ClaimActionCollectionMapExtensions.DeleteClaims 方法

定義

使用指定的 claimTypes,從 ClaimsIdentity 中刪除所有宣告。

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[]

要刪除的宣告類型。

適用於