OAuthClient.GetSignInResourceWithHttpMessagesAsync 方法

定义

获取包含 HTTP 消息的登录资源。

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.SignInResource>> GetSignInResourceWithHttpMessagesAsync(string state, string codeChallenge = default, string emulatorUrl = default, string finalRedirect = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
member this.GetSignInResourceWithHttpMessagesAsync : string * string * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.SignInResource>>
Public Function GetSignInResourceWithHttpMessagesAsync (state As String, Optional codeChallenge As String = Nothing, Optional emulatorUrl As String = Nothing, Optional finalRedirect As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of SignInResource))

参数

state
String

State。

codeChallenge
String

代码质询。

emulatorUrl
String

模拟器 URL。

finalRedirect
String

最终重定向。

customHeaders
Dictionary<String,List<String>>

将添加到请求的标头。

cancellationToken
CancellationToken

取消标记。

返回

Task<Microsoft.Rest.HttpOperationResponse<SignInResource>>

包含响应正文和响应标头的响应对象。

例外

Microsoft.Rest.HttpOperationException

当操作返回无效状态代码时引发。

Microsoft.Rest.SerializationException

当无法反序列化响应时引发。

Microsoft.Rest.ValidationException

当输入值与预期的数据类型、范围或模式不匹配时引发。

当所需参数为 null 时引发。

适用于