你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ChatClient.GetChatThreads 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取用户的ChatThreadItem聊天线程列表。
public virtual Azure.Pageable<Azure.Communication.Chat.ChatThreadItem> GetChatThreads (DateTimeOffset? startTime = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetChatThreads : Nullable<DateTimeOffset> * System.Threading.CancellationToken -> Azure.Pageable<Azure.Communication.Chat.ChatThreadItem>
override this.GetChatThreads : Nullable<DateTimeOffset> * System.Threading.CancellationToken -> Azure.Pageable<Azure.Communication.Chat.ChatThreadItem>
Public Overridable Function GetChatThreads (Optional startTime As Nullable(Of DateTimeOffset) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of ChatThreadItem)
参数
- startTime
- Nullable<DateTimeOffset>
获取聊天线程的最早时间点。 时间戳应采用 ISO8601 格式: yyyy-MM-ddTHH:mm:ssZ
。
- cancellationToken
- CancellationToken
要使用的取消标记。
返回
例外
服务器返回了错误。 有关从服务器返回的详细信息,请参阅 Message 。