OAuthHandler<TOptions>.ExchangeCodeAsync 方法   
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| ExchangeCodeAsync(OAuthCodeExchangeContext) | 交换来自远程提供程序的授权令牌的授权代码。 | 
| ExchangeCodeAsync(String, String) | 
ExchangeCodeAsync(OAuthCodeExchangeContext)
- Source:
- OAuthHandler.cs
交换来自远程提供程序的授权令牌的授权代码。
protected:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::OAuth::OAuthTokenResponse ^> ^ ExchangeCodeAsync(Microsoft::AspNetCore::Authentication::OAuth::OAuthCodeExchangeContext ^ context);protected virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse> ExchangeCodeAsync(Microsoft.AspNetCore.Authentication.OAuth.OAuthCodeExchangeContext context);abstract member ExchangeCodeAsync : Microsoft.AspNetCore.Authentication.OAuth.OAuthCodeExchangeContext -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse>
override this.ExchangeCodeAsync : Microsoft.AspNetCore.Authentication.OAuth.OAuthCodeExchangeContext -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse>Protected Overridable Function ExchangeCodeAsync (context As OAuthCodeExchangeContext) As Task(Of OAuthTokenResponse)参数
返回
适用于
ExchangeCodeAsync(String, String)
- Source:
- OAuthHandler.cs
- Source:
- OAuthHandler.cs
protected:
 virtual System::Threading::Tasks::Task<Microsoft::AspNetCore::Authentication::OAuth::OAuthTokenResponse ^> ^ ExchangeCodeAsync(System::String ^ code, System::String ^ redirectUri);protected virtual System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse> ExchangeCodeAsync(string code, string redirectUri);abstract member ExchangeCodeAsync : string * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse>
override this.ExchangeCodeAsync : string * string -> System.Threading.Tasks.Task<Microsoft.AspNetCore.Authentication.OAuth.OAuthTokenResponse>Protected Overridable Function ExchangeCodeAsync (code As String, redirectUri As String) As Task(Of OAuthTokenResponse)参数
- code
- String
- redirectUri
- String