UserToken.GetTokenWithHttpMessagesAsync Metoda
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Pobierz token z wiadomością HTTP.
public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.TokenResponse>> GetTokenWithHttpMessagesAsync(string userId, string connectionName, string channelId = default, string code = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTokenWithHttpMessagesAsync : 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.TokenResponse>>
override this.GetTokenWithHttpMessagesAsync : 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.TokenResponse>>
Public Function GetTokenWithHttpMessagesAsync (userId As String, connectionName As String, Optional channelId As String = Nothing, Optional code As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of TokenResponse))
Parametry
- userId
- String
Identyfikator użytkownika.
- connectionName
- String
Nazwa połączenia.
- channelId
- String
Identyfikator kanału.
- code
- String
Kod.
- customHeaders
- Dictionary<String,List<String>>
Nagłówki, które zostaną dodane do żądania.
- cancellationToken
- CancellationToken
Token anulowania.
Zwraca
Obiekt odpowiedzi zawierający ciało odpowiedzi oraz nagłówki odpowiedzi.
Implementuje
Wyjątki
Zrzucano, gdy operacja zwracała nieprawidłowy kod statusu.
Zrzucony, gdy nie mogę odtworzyć odpowiedzi.
Rzucane, gdy wymagany parametr jest null.
Rzucane, gdy wartość wejściowa nie odpowiada oczekiwanemu typowi danych, zakresowi lub wzorcowi.