CustomJsonClaimAction 建構函式

定義

多載

CustomJsonClaimAction(String, String, Func<JObject,String>)

建立新的 CustomJsonClaimAction。

CustomJsonClaimAction(String, String, Func<JsonElement,String>)

建立新的 CustomJsonClaimAction。

CustomJsonClaimAction(String, String, Func<JObject,String>)

來源:
CustomJsonClaimAction.cs
來源:
CustomJsonClaimAction.cs

建立新的 CustomJsonClaimAction。

public:
 CustomJsonClaimAction(System::String ^ claimType, System::String ^ valueType, Func<Newtonsoft::Json::Linq::JObject ^, System::String ^> ^ resolver);
public CustomJsonClaimAction (string claimType, string valueType, Func<Newtonsoft.Json.Linq.JObject,string> resolver);
new Microsoft.AspNetCore.Authentication.OAuth.Claims.CustomJsonClaimAction : string * string * Func<Newtonsoft.Json.Linq.JObject, string> -> Microsoft.AspNetCore.Authentication.OAuth.Claims.CustomJsonClaimAction
Public Sub New (claimType As String, valueType As String, resolver As Func(Of JObject, String))

參數

claimType
String

建立宣告時,要用於 Claim.Type 的值。

valueType
String

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

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

將會呼叫的 Func,以從指定的 json 使用者資料中選取值。

適用於

CustomJsonClaimAction(String, String, Func<JsonElement,String>)

來源:
CustomJsonClaimAction.cs

建立新的 CustomJsonClaimAction。

public:
 CustomJsonClaimAction(System::String ^ claimType, System::String ^ valueType, Func<System::Text::Json::JsonElement, System::String ^> ^ resolver);
public CustomJsonClaimAction (string claimType, string valueType, Func<System.Text.Json.JsonElement,string> resolver);
public CustomJsonClaimAction (string claimType, string valueType, Func<System.Text.Json.JsonElement,string?> resolver);
new Microsoft.AspNetCore.Authentication.OAuth.Claims.CustomJsonClaimAction : string * string * Func<System.Text.Json.JsonElement, string> -> Microsoft.AspNetCore.Authentication.OAuth.Claims.CustomJsonClaimAction
Public Sub New (claimType As String, valueType As String, resolver As Func(Of JsonElement, String))

參數

claimType
String

建立宣告時,要用於 Claim.Type 的值。

valueType
String

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

resolver
Func<JsonElement,String>

將會呼叫的 Func,以從指定的 JSON 使用者資料中選取值。

適用於