Conversations.GetConversationsWithHttpMessagesAsync 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
GetConversations。
public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Connector.ConversationsResult>> GetConversationsWithHttpMessagesAsync(string continuationToken = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.ConversationsResult>> GetConversationsWithHttpMessagesAsync(string continuationToken = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetConversationsWithHttpMessagesAsync : string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Connector.ConversationsResult>>
override this.GetConversationsWithHttpMessagesAsync : string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Connector.ConversationsResult>>
abstract member GetConversationsWithHttpMessagesAsync : string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.ConversationsResult>>
override this.GetConversationsWithHttpMessagesAsync : string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.ConversationsResult>>
Public Function GetConversationsWithHttpMessagesAsync (Optional continuationToken As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of ConversationsResult))
參數
- continuationToken
- String
略過或接續令牌。
- customHeaders
- Dictionary<String,List<String>>
請求時會新增的標頭。
- cancellationToken
- CancellationToken
取消權杖。
傳回
一個包含回應主體與回應標頭的回應物件。
實作
例外狀況
當操作回傳無效狀態碼時會丟棄。
Microsoft.Rest.SerializationException
當無法解序化回應時會丟棄。
備註
列出此 Bot 參與的交談。
使用略過令牌從這個方法取得
傳回值是 ConversationsResult,其中包含 ConversationMembers 陣列和略過令牌。 如果略過令牌不是空的,則會傳回其他值。 使用傳回的令牌再次呼叫這個方法,以取得更多值。
每個 ConversationMembers 物件都包含交談的標識碼,以及描述交談成員的 ChannelAccounts 陣列。