ClaimActionCollectionMapExtensions 类

定义

ClaimActionCollection 的扩展方法。

public ref class ClaimActionCollectionMapExtensions abstract sealed
public static class ClaimActionCollectionMapExtensions
type ClaimActionCollectionMapExtensions = class
Public Module ClaimActionCollectionMapExtensions
继承
ClaimActionCollectionMapExtensions

方法

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 用户数据中选择第二级值,并将其添加为声明。 如果未找到键或值为空,则为非操作。

适用于