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>)

執行指定的解析程式,從 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 時,要用於 Claim.Type 的值。

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

要從指定的 json 使用者資料中選取值的 Func。

適用於

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 時,要用於 Claim.Type 的值。

resolver
Func<JsonElement,String>

要從指定的 json 使用者資料中選取值的 Func。

適用於

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

執行指定的解析程式,從 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 時,要用於 Claim.Type 的值。

valueType
String

建立 Claim.ValueType 時,要用於 Claim.ValueType 的值。

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

要從指定的 json 使用者資料中選取值的 Func。

適用於

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 時,要用於 Claim.Type 的值。

valueType
String

建立 Claim.ValueType 時,要用於 Claim.ValueType 的值。

resolver
Func<JsonElement,String>

要從指定的 json 使用者資料中選取值的 Func。

適用於