语言

IUserToken.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>>>
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

用户 ID。

channelId
String

通道 ID。

include
String

包括。

customHeaders
Dictionary<String,List<String>>

请求时会添加的头部。

cancellationToken
CancellationToken

取消令牌。

返回

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

一个任务,表示 HTTP 操作中的 TokenStatus IList。

例外

当操作返回无效状态码时,会被抛出。

Microsoft.Rest.SerializationException

当无法反序列化响应时被抛弃。

Microsoft.Rest.ValidationException

当所需参数为空时,会被抛出。

适用于