Sdílet prostřednictvím


ClaimActionCollectionMapExtensions.MapJsonKey Metoda

Definice

Přetížení

MapJsonKey(ClaimActionCollection, String, String)

Vyberte hodnotu nejvyšší úrovně z uživatelských dat JSON s daným názvem klíče a přidejte ji jako deklaraci identity. Toto no-opss, pokud klíč nebyl nalezen nebo hodnota je prázdná.

MapJsonKey(ClaimActionCollection, String, String, String)

Vyberte hodnotu nejvyšší úrovně z uživatelských dat JSON s daným názvem klíče a přidejte ji jako deklaraci identity. Toto no-opss, pokud klíč nebyl nalezen nebo hodnota je prázdná.

MapJsonKey(ClaimActionCollection, String, String)

Zdroj:
ClaimActionCollectionMapExtensions.cs
Zdroj:
ClaimActionCollectionMapExtensions.cs
Zdroj:
ClaimActionCollectionMapExtensions.cs

Vyberte hodnotu nejvyšší úrovně z uživatelských dat JSON s daným názvem klíče a přidejte ji jako deklaraci identity. Toto no-opss, pokud klíč nebyl nalezen nebo hodnota je prázdná.

public:
[System::Runtime::CompilerServices::Extension]
 static void MapJsonKey(Microsoft::AspNetCore::Authentication::OAuth::Claims::ClaimActionCollection ^ collection, System::String ^ claimType, System::String ^ jsonKey);
public static void MapJsonKey (this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, string jsonKey);
static member MapJsonKey : Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection * string * string -> unit
<Extension()>
Public Sub MapJsonKey (collection As ClaimActionCollection, claimType As String, jsonKey As String)

Parametry

claimType
String

Hodnota, která se má použít pro Claim.Type při vytváření deklarace identity.

jsonKey
String

Klíč nejvyšší úrovně, který se má hledat v uživatelských datech JSON.

Platí pro

MapJsonKey(ClaimActionCollection, String, String, String)

Zdroj:
ClaimActionCollectionMapExtensions.cs
Zdroj:
ClaimActionCollectionMapExtensions.cs
Zdroj:
ClaimActionCollectionMapExtensions.cs

Vyberte hodnotu nejvyšší úrovně z uživatelských dat JSON s daným názvem klíče a přidejte ji jako deklaraci identity. Toto no-opss, pokud klíč nebyl nalezen nebo hodnota je prázdná.

public:
[System::Runtime::CompilerServices::Extension]
 static void MapJsonKey(Microsoft::AspNetCore::Authentication::OAuth::Claims::ClaimActionCollection ^ collection, System::String ^ claimType, System::String ^ jsonKey, System::String ^ valueType);
public static void MapJsonKey (this Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection collection, string claimType, string jsonKey, string valueType);
static member MapJsonKey : Microsoft.AspNetCore.Authentication.OAuth.Claims.ClaimActionCollection * string * string * string -> unit
<Extension()>
Public Sub MapJsonKey (collection As ClaimActionCollection, claimType As String, jsonKey As String, valueType As String)

Parametry

claimType
String

Hodnota, která se má použít pro Claim.Type při vytváření deklarace identity.

jsonKey
String

Klíč nejvyšší úrovně, který se má hledat v uživatelských datech JSON.

valueType
String

Hodnota, která se má použít pro Claim.ValueType při vytváření deklarace identity.

Platí pro