Dela via


IConversations.DeleteActivityWithHttpMessagesAsync Metod

Definition

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)

Parametrar

conversationId
String

Konversations-ID.

activityId
String

activityId att ta bort.

customHeaders
Dictionary<String,List<String>>

Rubrikerna som läggs till i begäran.

cancellationToken
CancellationToken

Annulleringstoken.

Returer

Task<Microsoft.Rest.HttpOperationResponse>

En uppgift som representerar Microsoft.Rest.HttpOperationResponse.

Undantag

Utlöses när åtgärden returnerade en ogiltig statuskod.

Microsoft.Rest.ValidationException

Genereras när en obligatorisk parameter är null.

Kommentarer

Ta bort en befintlig aktivitet.

Med vissa kanaler kan du ta bort en befintlig aktivitet, och om den här metoden lyckas tas den angivna aktiviteten bort.

Gäller för