語言

UserToken.GetTokenStatusWithHttpMessagesAsync 方法

定義

以 HTTP 訊息取得令牌狀態。

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

參數

userId
String

使用者識別碼。

channelId
String

通道標識碼。

include
String

包含。

customHeaders
Dictionary<String,List<String>>

請求時會新增的標頭。

cancellationToken
CancellationToken

取消權杖。

傳回

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

一個包含回應主體與回應標頭的回應物件。

實作

例外狀況

當操作回傳無效狀態碼時會丟棄。

Microsoft.Rest.SerializationException

當無法解序化回應時會丟棄。

Microsoft.Rest.ValidationException

當輸入值與預期資料型別、範圍或模式不符時,會拋出。

當所需參數為空時會拋出。

適用於