UserToken.GetTokenWithHttpMessagesAsync Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtenez un jeton avec message 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))
Paramètres
- userId
- String
Identifiant.
- connectionName
- String
Nom de la connexion.
- channelId
- String
ID de canal.
- code
- String
Le code.
- customHeaders
- Dictionary<String,List<String>>
Des en-têtes qui seront ajoutés à la requête.
- cancellationToken
- CancellationToken
Jeton d’annulation.
Retours
Un objet réponse contenant le corps de réponse et les en-têtes de réponse.
Implémente
Exceptions
Déclenché lorsque l’opération a renvoyé un code de statut invalide.
Rejeté lorsqu’il n’est pas possible de désérialiser la réponse.
Lancé lorsqu’un paramètre requis est nul.
Jetée lorsqu’une valeur d’entrée ne correspond pas au type, à la plage ou au motif attendu.