OAuthTokenResponse.Success 方法

定義

多載

Success(JObject)
Success(JsonDocument)

建立成功的 OAuthTokenResponse

Success(JObject)

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)

建立成功的 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 執行個體。

適用於