IConversations.DeleteActivityWithHttpMessagesAsync 方法

定义

DeleteActivity。

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

参数

conversationId
String

对话 ID。

activityId
String

要删除的 activityId。

customHeaders
Dictionary<String,List<String>>

将添加到请求的标头。

cancellationToken
CancellationToken

取消标记。

返回

Task<Microsoft.Rest.HttpOperationResponse>

一个表示 Microsoft.Rest.HttpOperationResponse的任务。

例外

操作返回无效状态代码时引发。

Microsoft.Rest.ValidationException

当所需的参数为 null 时引发。

注解

删除现有活动。

某些通道允许删除现有活动,如果成功,此方法将删除指定的活动。

适用于