OAuthTokenResponse.Success 方法

定义

重载

Success(JObject)
Success(JsonDocument)

创建成功的 OAuthTokenResponse

Success(JObject)

Source:
OAuthTokenResponse.cs
Source:
OAuthTokenResponse.cs
public:
 static Microsoft::AspNetCore::Authentication::OAuth::OAuthTokenResponse ^ Success(Newtonsoft::Json::Linq::JObject ^ response);
public static Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse Success (Newtonsoft.Json.Linq.JObject response);
static member Success : Newtonsoft.Json.Linq.JObject -> Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse
Public Shared Function Success (response As JObject) As OAuthTokenResponse

参数

response
Newtonsoft.Json.Linq.JObject

返回

适用于

Success(JsonDocument)

Source:
OAuthTokenResponse.cs

创建成功的 OAuthTokenResponse

public:
 static Microsoft::AspNetCore::Authentication::OAuth::OAuthTokenResponse ^ Success(System::Text::Json::JsonDocument ^ response);
public static Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse Success (System.Text.Json.JsonDocument response);
static member Success : System.Text.Json.JsonDocument -> Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse
Public Shared Function Success (response As JsonDocument) As OAuthTokenResponse

参数

response
JsonDocument

收到的 JSON 有效负载。

返回

一个 OAuthTokenResponse 实例。

适用于