UserTokenExtensions.GetTokenStatusAsync 方法

定义

获取令牌状态。

public static System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Bot.Schema.TokenStatus>> GetTokenStatusAsync (this Microsoft.Bot.Connector.IUserToken operations, string userId, string channelId = default, string include = default, System.Threading.CancellationToken cancellationToken = default);
static member GetTokenStatusAsync : Microsoft.Bot.Connector.IUserToken * string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Bot.Schema.TokenStatus>>
<Extension()>
Public Function GetTokenStatusAsync (operations As IUserToken, userId As String, Optional channelId As String = Nothing, Optional include As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of TokenStatus))

参数

operations
IUserToken

此扩展方法的操作组。

userId
String

用户 ID。

channelId
String

通道 ID。

include
String

包括。

cancellationToken
CancellationToken

取消标记。

返回

表示令牌状态的任务。

适用于