ClaimActionCollectionMapExtensions.MapCustomJson Metoda

Definicja

Przeciążenia

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

Uruchom dany program rozpoznawania nazw, aby wybrać wartość z danych użytkownika w formacie JSON, aby dodać je jako oświadczenie. Jeśli zwrócona wartość jest pusta, ta wartość nie działa.

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

Uruchom dany program rozpoznawania nazw, aby wybrać wartość z danych użytkownika w formacie JSON, aby dodać je jako oświadczenie. Jeśli zwrócona wartość jest pusta, ta wartość nie działa.

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

Uruchom dany program rozpoznawania nazw, aby wybrać wartość z danych użytkownika w formacie JSON, aby dodać je jako oświadczenie. Jeśli zwrócona wartość jest pusta, ta wartość nie działa.

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

Uruchom dany program rozpoznawania nazw, aby wybrać wartość z danych użytkownika w formacie JSON, aby dodać je jako oświadczenie. Jeśli zwrócona wartość jest pusta, ta wartość nie działa.

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

Źródło:
ClaimActionCollectionMapExtensions.cs
Źródło:
ClaimActionCollectionMapExtensions.cs

Uruchom dany program rozpoznawania nazw, aby wybrać wartość z danych użytkownika w formacie JSON, aby dodać je jako oświadczenie. Jeśli zwrócona wartość jest pusta, ta wartość nie działa.

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

Parametry

claimType
String

Wartość, która ma być używana dla obiektu Claim.Type podczas tworzenia oświadczenia.

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

Func, który zostanie wywołany w celu wybrania wartości z danych użytkownika json.

Dotyczy

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

Uruchom dany program rozpoznawania nazw, aby wybrać wartość z danych użytkownika w formacie JSON, aby dodać je jako oświadczenie. Jeśli zwrócona wartość jest pusta, ta wartość nie działa.

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

Parametry

claimType
String

Wartość, która ma być używana dla obiektu Claim.Type podczas tworzenia oświadczenia.

resolver
Func<JsonElement,String>

Func, który zostanie wywołany w celu wybrania wartości z danych użytkownika json.

Dotyczy

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

Źródło:
ClaimActionCollectionMapExtensions.cs
Źródło:
ClaimActionCollectionMapExtensions.cs

Uruchom dany program rozpoznawania nazw, aby wybrać wartość z danych użytkownika w formacie JSON, aby dodać je jako oświadczenie. Jeśli zwrócona wartość jest pusta, ta wartość nie działa.

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

Parametry

claimType
String

Wartość, która ma być używana dla obiektu Claim.Type podczas tworzenia oświadczenia.

valueType
String

Wartość do użycia dla Claim.ValueType podczas tworzenia oświadczenia.

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

Func, który zostanie wywołany w celu wybrania wartości z danych użytkownika json.

Dotyczy

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

Uruchom dany program rozpoznawania nazw, aby wybrać wartość z danych użytkownika w formacie JSON, aby dodać je jako oświadczenie. Jeśli zwrócona wartość jest pusta, ta wartość nie działa.

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

Parametry

claimType
String

Wartość, która ma być używana dla obiektu Claim.Type podczas tworzenia oświadczenia.

valueType
String

Wartość do użycia dla Claim.ValueType podczas tworzenia oświadczenia.

resolver
Func<JsonElement,String>

Func, który zostanie wywołany w celu wybrania wartości z danych użytkownika json.

Dotyczy