ClaimActionCollectionMapExtensions.MapCustomJson 方法

定义

重载

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 用户数据中选择一个值。 如果返回的值为空,则此无操作。

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

Source:
ClaimActionCollectionMapExtensions.cs
Source:
ClaimActionCollectionMapExtensions.cs

运行给定的解析程序,从要添加为声明的 json 用户数据中选择一个值。 如果返回的值为空,则此无操作。

public:
[System::Runtime::CompilerServices::Extension]
 static void MapCustomJson(Microsoft::AspNetCore::Authentication::OAuth::Claims::ClaimActionCollection ^ collection, System::String ^ claimType, Func<Newtonsoft::Json::Linq::JObject ^, System::String ^> ^ resolver);
public static void MapCustomJson (this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, Func<Newtonsoft.Json.Linq.JObject,string> resolver);
static member MapCustomJson : Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection * string * Func<Newtonsoft.Json.Linq.JObject, string> -> unit
<Extension()>
Public Sub MapCustomJson (collection As ClaimActionCollection, claimType As String, resolver As Func(Of JObject, String))

参数

claimType
String

创建声明时要用于 Claim.Type 的值。

resolver
Func<Newtonsoft.Json.Linq.JObject,String>

将调用的 Func,用于从给定的 json 用户数据中选择值。

适用于

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

运行给定的解析程序,从要添加为声明的 json 用户数据中选择一个值。 如果返回的值为空,则此无操作。

public:
[System::Runtime::CompilerServices::Extension]
 static void MapCustomJson(Microsoft::AspNetCore::Authentication::OAuth::Claims::ClaimActionCollection ^ collection, System::String ^ claimType, Func<System::Text::Json::JsonElement, System::String ^> ^ resolver);
public static void MapCustomJson (this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, Func<System.Text.Json.JsonElement,string> resolver);
public static void MapCustomJson (this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, Func<System.Text.Json.JsonElement,string?> resolver);
static member MapCustomJson : Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection * string * Func<System.Text.Json.JsonElement, string> -> unit
<Extension()>
Public Sub MapCustomJson (collection As ClaimActionCollection, claimType As String, resolver As Func(Of JsonElement, String))

参数

claimType
String

创建声明时要用于 Claim.Type 的值。

resolver
Func<JsonElement,String>

将调用的 Func,用于从给定的 json 用户数据中选择值。

适用于

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

Source:
ClaimActionCollectionMapExtensions.cs
Source:
ClaimActionCollectionMapExtensions.cs

运行给定的解析程序,从要添加为声明的 json 用户数据中选择一个值。 如果返回的值为空,则此无操作。

public:
[System::Runtime::CompilerServices::Extension]
 static void MapCustomJson(Microsoft::AspNetCore::Authentication::OAuth::Claims::ClaimActionCollection ^ collection, System::String ^ claimType, System::String ^ valueType, Func<Newtonsoft::Json::Linq::JObject ^, System::String ^> ^ resolver);
public static void MapCustomJson (this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, string valueType, Func<Newtonsoft.Json.Linq.JObject,string> resolver);
static member MapCustomJson : Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection * string * string * Func<Newtonsoft.Json.Linq.JObject, string> -> unit
<Extension()>
Public Sub MapCustomJson (collection As ClaimActionCollection, claimType As String, valueType As String, resolver As Func(Of JObject, String))

参数

claimType
String

创建声明时要用于 Claim.Type 的值。

valueType
String

创建声明时要用于 Claim.ValueType 的值。

resolver
Func<Newtonsoft.Json.Linq.JObject,String>

将调用的 Func,用于从给定的 json 用户数据中选择值。

适用于

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

运行给定的解析程序,从要添加为声明的 json 用户数据中选择一个值。 如果返回的值为空,则此无操作。

public:
[System::Runtime::CompilerServices::Extension]
 static void MapCustomJson(Microsoft::AspNetCore::Authentication::OAuth::Claims::ClaimActionCollection ^ collection, System::String ^ claimType, System::String ^ valueType, Func<System::Text::Json::JsonElement, System::String ^> ^ resolver);
public static void MapCustomJson (this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, string valueType, Func<System.Text.Json.JsonElement,string> resolver);
public static void MapCustomJson (this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, string valueType, Func<System.Text.Json.JsonElement,string?> resolver);
static member MapCustomJson : Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection * string * string * Func<System.Text.Json.JsonElement, string> -> unit
<Extension()>
Public Sub MapCustomJson (collection As ClaimActionCollection, claimType As String, valueType As String, resolver As Func(Of JsonElement, String))

参数

claimType
String

创建声明时要用于 Claim.Type 的值。

valueType
String

创建声明时要用于 Claim.ValueType 的值。

resolver
Func<JsonElement,String>

将调用的 Func,用于从给定的 json 用户数据中选择值。

适用于