CustomJsonClaimAction Konstruktory
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
| CustomJsonClaimAction(String, String, Func<JObject,String>) |
Vytvoří novou CustomJsonClaimAction. |
| CustomJsonClaimAction(String, String, Func<JsonElement,String>) |
Vytvoří novou CustomJsonClaimAction. |
CustomJsonClaimAction(String, String, Func<JObject,String>)
Vytvoří novou 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))
Parametry
- claimType
- String
Hodnota, která se má použít pro Claim.Type při vytváření deklarace identity.
- valueType
- String
Hodnota, která se má použít pro Claim.ValueType při vytváření deklarace identity.
Func, který bude volán k výběru hodnoty z daných uživatelských dat JSON.
Platí pro
CustomJsonClaimAction(String, String, Func<JsonElement,String>)
Vytvoří novou 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))
Parametry
- claimType
- String
Hodnota, která se má použít pro Claim.Type při vytváření deklarace identity.
- valueType
- String
Hodnota, která se má použít pro Claim.ValueType při vytváření deklarace identity.
- resolver
- Func<JsonElement,String>
Func, který bude volán k výběru hodnoty z daných uživatelských dat JSON.