ChannelServiceHandlerBase.HandleUpdateActivityAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Edits a previously sent existing activity.
public System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse> HandleUpdateActivityAsync (string authHeader, string conversationId, string activityId, Microsoft.Bot.Schema.Activity activity, System.Threading.CancellationToken cancellationToken = default);
member this.HandleUpdateActivityAsync : string * string * string * Microsoft.Bot.Schema.Activity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
Public Function HandleUpdateActivityAsync (authHeader As String, conversationId As String, activityId As String, activity As Activity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)
Parameters
- authHeader
- String
The authentication header.
- conversationId
- String
The conversation Id.
- activityId
- String
The activity Id to update.
- activity
- Activity
The replacement activity.
- cancellationToken
- CancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
A Task<TResult> representing the result of the asynchronous operation.