ChannelServiceHandlerBase.OnDeleteActivityAsync 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.
OnDeleteActivityAsync() API.
protected virtual System.Threading.Tasks.Task OnDeleteActivityAsync (System.Security.Claims.ClaimsIdentity claimsIdentity, string conversationId, string activityId, System.Threading.CancellationToken cancellationToken = default);
abstract member OnDeleteActivityAsync : System.Security.Claims.ClaimsIdentity * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnDeleteActivityAsync : System.Security.Claims.ClaimsIdentity * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnDeleteActivityAsync (claimsIdentity As ClaimsIdentity, conversationId As String, activityId As String, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- claimsIdentity
- ClaimsIdentity
claimsIdentity for the bot, should have AudienceClaim, AppIdClaim and ServiceUrlClaim.
- conversationId
- String
Conversation ID.
- activityId
- String
activityId to delete.
- cancellationToken
- CancellationToken
The cancellation token.
Returns
task for a resource response.
Remarks
Override this method to Delete an existing activity.
Some channels allow you to delete an existing activity, and if successful this method will remove the specified activity.