Sprache

IUserToken.GetTokenWithHttpMessagesAsync Methode

Definition

Erhalten Sie das Token mit HTTP-Nachricht.

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>>
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))

Parameter

userId
String

Benutzer-ID.

connectionName
String

Verbindungsname.

channelId
String

Kanal-ID.

code
String

Code

customHeaders
Dictionary<String,List<String>>

Die Header, die auf Anfrage hinzugefügt werden.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Task<Microsoft.Rest.HttpOperationResponse<TokenResponse>>

Eine Aufgabe, die die TokenResponse HTTP-Operation darstellt.

Ausnahmen

Geworfen, wenn die Operation einen ungültigen Statuscode zurückgab.

Microsoft.Rest.SerializationException

Geworfen, wenn man die Reaktion nicht entwerten kann.

Microsoft.Rest.ValidationException

Wird geworfen, wenn ein erforderlicher Parameter null ist.

Gilt für: