Share via


ClaimActionCollection 類別

定義

將使用者資料對應至 Claims 時使用的 ClaimActions 集合。

public ref class ClaimActionCollection : System::Collections::Generic::IEnumerable<Microsoft::AspNetCore::Authentication::OAuth::Claims::ClaimAction ^>
public class ClaimActionCollection : System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimAction>
type ClaimActionCollection = class
    interface seq<ClaimAction>
    interface IEnumerable
Public Class ClaimActionCollection
Implements IEnumerable(Of ClaimAction)
繼承
ClaimActionCollection
實作

建構函式

ClaimActionCollection()

將使用者資料對應至 Claims 時使用的 ClaimActions 集合。

方法

Add(ClaimAction)

將宣告動作新增至集合。

Clear()

移除所有宣告動作。

GetEnumerator()

將使用者資料對應至 Claims 時使用的 ClaimActions 集合。

Remove(String)

移除指定 ClaimType 的所有宣告動作。

明確介面實作

IEnumerable.GetEnumerator()

將使用者資料對應至 Claims 時使用的 ClaimActions 集合。

擴充方法

DeleteClaim(ClaimActionCollection, String)

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

DeleteClaims(ClaimActionCollection, String[])

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

MapAll(ClaimActionCollection)

清除任何目前的 ClaimsActions,並將 json 使用者資料中的所有值對應為宣告,不包括重複專案。

MapAllExcept(ClaimActionCollection, String[])

清除任何目前的 ClaimsActions,並將 json 使用者資料中的所有值對應為宣告,不包括指定的類型。

MapCustomJson(ClaimActionCollection, String, Func<JObject,String>)

執行指定的解析程式,從 json 使用者資料中選取值,以新增為宣告。 如果傳回的值是空的,這個無作業。

MapCustomJson(ClaimActionCollection, String, Func<JsonElement,String>)

執行指定的解析程式,從 json 使用者資料中選取值,以新增為宣告。 如果傳回的值是空的,這個無作業。

MapCustomJson(ClaimActionCollection, String, String, Func<JObject,String>)

執行指定的解析程式,從 json 使用者資料中選取值,以新增為宣告。 如果傳回的值是空的,這個無作業。

MapCustomJson(ClaimActionCollection, String, String, Func<JsonElement,String>)

執行指定的解析程式,從 json 使用者資料中選取值,以新增為宣告。 如果傳回的值是空的,這個無作業。

MapJsonKey(ClaimActionCollection, String, String)

從具有指定索引鍵名稱的 json 使用者資料中選取最上層值,並將其新增為宣告。 如果找不到索引鍵或值是空的,這個無動作。

MapJsonKey(ClaimActionCollection, String, String, String)

從具有指定索引鍵名稱的 json 使用者資料中選取最上層值,並將其新增為宣告。 如果找不到索引鍵或值是空的,這個無動作。

MapJsonSubKey(ClaimActionCollection, String, String, String)

從具有指定最上層索引鍵名稱和第二層子機碼名稱的 json 使用者資料中選取第二層值,並將其新增為宣告。 如果找不到索引鍵或值是空的,這個無動作。

MapJsonSubKey(ClaimActionCollection, String, String, String, String)

從具有指定最上層索引鍵名稱和第二層子機碼名稱的 json 使用者資料中選取第二層值,並將其新增為宣告。 如果找不到索引鍵或值是空的,這個無動作。

MapUniqueJsonKey(ClaimActionCollection, String, String)

從具有指定索引鍵名稱的 json 使用者資料中選取最上層值,並將其新增為宣告。 如果 ClaimsIdentity 已經包含具有指定 ClaimType 的 Claim,則這個 no-ops。 如果找不到索引鍵或值是空的,這個無動作。

MapUniqueJsonKey(ClaimActionCollection, String, String, String)

從具有指定索引鍵名稱的 json 使用者資料中選取最上層值,並將其新增為宣告。 如果 ClaimsIdentity 已經包含具有指定 ClaimType 的 Claim,則這個 no-ops。 如果找不到索引鍵或值是空的,這個無動作。

適用於