IUserToken.GetAadTokensWithHttpMessagesAsync Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Abrufen des AAD-Tokens mit HTTP-Nachricht.
public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.Collections.Generic.IDictionary<string,Microsoft.Bot.Schema.TokenResponse>>> GetAadTokensWithHttpMessagesAsync (string userId, string connectionName, Microsoft.Bot.Schema.AadResourceUrls aadResourceUrls, string channelId = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAadTokensWithHttpMessagesAsync : string * string * Microsoft.Bot.Schema.AadResourceUrls * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.Collections.Generic.IDictionary<string, Microsoft.Bot.Schema.TokenResponse>>>
Public Function GetAadTokensWithHttpMessagesAsync (userId As String, connectionName As String, aadResourceUrls As AadResourceUrls, Optional channelId As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of IDictionary(Of String, TokenResponse)))
Parameter
- userId
- String
Benutzer-ID.
- connectionName
- String
Der Name der Verbindung.
- aadResourceUrls
- AadResourceUrls
AAD-Ressourcen-URLs.
- channelId
- String
Die Kanal-ID.
- customHeaders
- Dictionary<String,List<String>>
Die Header, die der Anforderung hinzugefügt werden.
- cancellationToken
- CancellationToken
Das Abbruchtoken.
Gibt zurück
Ein Task, der den TokenResponse des HTTP-Vorgangs darstellt.
Ausnahmen
Wird ausgelöst, wenn der Vorgang einen ungültigen Statuscode zurückgegeben hat.
Wird ausgelöst, wenn die Antwort nicht deserialisiert werden kann.
Wird ausgelöst, wenn ein erforderlicher Parameter NULL ist.