Freigeben über


UserToken.GetTokenStatusWithHttpMessagesAsync Methode

Definition

Abrufen des Tokenstatus mit HTTP-Nachricht.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.Collections.Generic.IList<Microsoft.Bot.Schema.TokenStatus>>> GetTokenStatusWithHttpMessagesAsync(string userId, string channelId = default, string include = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetTokenStatusWithHttpMessagesAsync : string * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.Collections.Generic.IList<Microsoft.Bot.Schema.TokenStatus>>>
override this.GetTokenStatusWithHttpMessagesAsync : string * string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<System.Collections.Generic.IList<Microsoft.Bot.Schema.TokenStatus>>>
Public Function GetTokenStatusWithHttpMessagesAsync (userId As String, Optional channelId As String = Nothing, Optional include As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of IList(Of TokenStatus)))

Parameter

userId
String

Benutzer-ID.

channelId
String

Kanal-ID.

include
String

Einschließen.

customHeaders
Dictionary<String,List<String>>

Header, die der Anforderung hinzugefügt werden.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Task<Microsoft.Rest.HttpOperationResponse<IList<TokenStatus>>>

Ein Antwortobjekt, das den Antworttext und die Antwortheader enthält.

Implementiert

Ausnahmen

Wird ausgelöst, wenn der Vorgang einen ungültigen Statuscode zurückgegeben hat.

Microsoft.Rest.SerializationException

Wird ausgelöst, wenn die Antwort nicht deserialisiert werden kann.

Microsoft.Rest.ValidationException

Wird ausgelöst, wenn ein Eingabewert nicht mit dem erwarteten Datentyp, Bereich oder Muster übereinstimmt.

Wird ausgelöst, wenn ein erforderlicher Parameter NULL ist.

Gilt für: