ClaimActionCollectionMapExtensions.MapJsonSubKey 方法

定义

重载

MapJsonSubKey(ClaimActionCollection, String, String, String)

使用给定的顶级密钥名称和二级子键名称从 json 用户数据中选择第二级值,并将其添加为声明。 如果找不到密钥或值为空,则此不操作。

MapJsonSubKey(ClaimActionCollection, String, String, String, String)

使用给定的顶级密钥名称和二级子键名称从 json 用户数据中选择第二级值,并将其添加为声明。 如果找不到密钥或值为空,则此不操作。

MapJsonSubKey(ClaimActionCollection, String, String, String)

使用给定的顶级密钥名称和二级子键名称从 json 用户数据中选择第二级值,并将其添加为声明。 如果找不到密钥或值为空,则此不操作。

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

参数

claimType
String

创建声明时要用于 Claim.Type 的值。

jsonKey
String

要在 json 用户数据中查找的顶级键。

subKey
String

要在 json 用户数据中查找的第二级键。

适用于

MapJsonSubKey(ClaimActionCollection, String, String, String, String)

使用给定的顶级密钥名称和二级子键名称从 json 用户数据中选择第二级值,并将其添加为声明。 如果找不到密钥或值为空,则此不操作。

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

参数

claimType
String

创建声明时要用于 Claim.Type 的值。

jsonKey
String

要在 json 用户数据中查找的顶级键。

subKey
String

要在 json 用户数据中查找的第二级键。

valueType
String

创建声明时要用于 Claim.ValueType 的值。

适用于