Sdílet prostřednictvím


IConversations.UpdateActivityWithHttpMessagesAsync Metoda

Definice

Přetížení

UpdateActivityWithHttpMessagesAsync(String, String, Activity, Dictionary<String,List<String>>, CancellationToken)
UpdateActivityWithHttpMessagesAsync(String, String, Activity, Dictionary<String,List<String>>, CancellationToken)

UpdateActivity.

UpdateActivityWithHttpMessagesAsync(String, String, Activity, Dictionary<String,List<String>>, CancellationToken)

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Connector.ResourceResponse>> UpdateActivityWithHttpMessagesAsync (string conversationId, string activityId, Microsoft.Bot.Connector.Activity activity, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateActivityWithHttpMessagesAsync : string * string * Microsoft.Bot.Connector.Activity * 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 UpdateActivityWithHttpMessagesAsync (conversationId As String, activityId As String, activity As Activity, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of ResourceResponse))

Parametry

conversationId
String
activityId
String
activity
Activity
customHeaders
Dictionary<String,List<String>>
cancellationToken
CancellationToken

Návraty

Task<Microsoft.Rest.HttpOperationResponse<ResourceResponse>>

Platí pro

UpdateActivityWithHttpMessagesAsync(String, String, Activity, Dictionary<String,List<String>>, CancellationToken)

UpdateActivity.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Bot.Schema.ResourceResponse>> UpdateActivityWithHttpMessagesAsync (string conversationId, string activityId, Microsoft.Bot.Schema.Activity activity, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateActivityWithHttpMessagesAsync : string * string * Microsoft.Bot.Schema.Activity * 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 UpdateActivityWithHttpMessagesAsync (conversationId As String, activityId As String, activity As Activity, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of ResourceResponse))

Parametry

conversationId
String

ID konverzace.

activityId
String

activityId k aktualizaci.

activity
Activity

substituční aktivita.

customHeaders
Dictionary<String,List<String>>

Hlavičky, které se přidají do požadavku.

cancellationToken
CancellationToken

Token zrušení.

Návraty

Task<Microsoft.Rest.HttpOperationResponse<ResourceResponse>>

Úkol, který představuje Microsoft.Rest.HttpOperationResponse.

Výjimky

Vyvolá se, když operace vrátila neplatný stavový kód.

Microsoft.Rest.SerializationException

Vyvolána, když nelze odpověď deserializovat.

Microsoft.Rest.ValidationException

Vyvolá se, pokud má povinný parametr hodnotu null.

Poznámky

Úprava existující aktivity

Některé kanály umožňují upravit existující aktivitu tak, aby odrážela nový stav konverzace robota.

Tlačítka můžete například odebrat, když někdo klikne na tlačítko Schválit.

Platí pro