UserToken.GetTokenWithHttpMessagesAsync Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Ottieni il token con il messaggio 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))
Parametri
- userId
- String
ID utente.
- connectionName
- String
Nome connessione.
- channelId
- String
ID canale.
- code
- String
Codice.
- customHeaders
- Dictionary<String,List<String>>
Header che verranno aggiunti alla richiesta.
- cancellationToken
- CancellationToken
Token di annullamento.
Valori restituiti
Un oggetto risposta contenente il corpo della risposta e le intestazioni risposta.
Implementazioni
Eccezioni
Veniva lanciata quando l'operazione restituiva un codice di stato non valido.
Viene lanciato quando non si riesce a deserializzare la risposta.
Viene lanciato quando un parametro richiesto è nullo.
Viene lanciato quando un valore di input non corrisponde al tipo di dato atteso, all'intervallo o al pattern.