次の方法で共有


IConversations.SendConversationHistoryWithHttpMessagesAsync メソッド

定義

オーバーロード

SendConversationHistoryWithHttpMessagesAsync(String, Transcript, Dictionary<String,List<String>>, CancellationToken)
SendConversationHistoryWithHttpMessagesAsync(String, Transcript, Dictionary<String,List<String>>, CancellationToken)

SendConversationHistory。

SendConversationHistoryWithHttpMessagesAsync(String, Transcript, Dictionary<String,List<String>>, CancellationToken)

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Connector.ResourceResponse>> SendConversationHistoryWithHttpMessagesAsync (string conversationId, Microsoft.Bot.Connector.Transcript history, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SendConversationHistoryWithHttpMessagesAsync : string * Microsoft.Bot.Connector.Transcript * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Connector.ResourceResponse>>
Public Function SendConversationHistoryWithHttpMessagesAsync (conversationId As String, history As Transcript, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of ResourceResponse))

パラメーター

conversationId
String
history
Transcript
customHeaders
Dictionary<String,List<String>>
cancellationToken
CancellationToken

戻り値

Task<Microsoft.Rest.HttpOperationResponse<ResourceResponse>>

適用対象

SendConversationHistoryWithHttpMessagesAsync(String, Transcript, Dictionary<String,List<String>>, CancellationToken)

SendConversationHistory。

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.ResourceResponse>> SendConversationHistoryWithHttpMessagesAsync (string conversationId, Microsoft.Bot.Schema.Transcript transcript, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member SendConversationHistoryWithHttpMessagesAsync : string * Microsoft.Bot.Schema.Transcript * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.ResourceResponse>>
Public Function SendConversationHistoryWithHttpMessagesAsync (conversationId As String, transcript As Transcript, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of ResourceResponse))

パラメーター

conversationId
String

会話 ID。

transcript
Transcript

アクティビティのトランスクリプト。

customHeaders
Dictionary<String,List<String>>

要求に追加されるヘッダー。

cancellationToken
CancellationToken

キャンセル トークン。

戻り値

Task<Microsoft.Rest.HttpOperationResponse<ResourceResponse>>

を表す Microsoft.Rest.HttpOperationResponseタスク。

例外

操作が無効な状態コードを返したときにスローされます。

Microsoft.Rest.SerializationException

応答を逆シリアル化できない場合にスローされます。

Microsoft.Rest.ValidationException

必要なパラメーターが null の場合にスローされます。

注釈

このメソッドを使用すると、履歴アクティビティを会話にアップロードできます。

送信者は、履歴アクティビティに一意の ID と適切なタイムスタンプがあることを確認する必要があります。 ID は重複するアクティビティを処理するためにクライアントによって使用され、タイムスタンプはクライアントがアクティビティを適切な順序でレンダリングするために使用されます。

適用対象