共用方式為


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

要刪除的宣告類型

適用於