Поделиться через


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 при создании утверждения.

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 при создании утверждения.

resolver
Func<JsonElement,String>

Func, который будет вызываться для выбора значения из заданных пользовательских данных JSON.

Применяется к