Langue

Conversations.DeleteActivityWithHttpMessagesAsync Méthode

Définition

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>
override this.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)

Paramètres

conversationId
String

ID de conversation.

activityId
String

activityId à supprimer.

customHeaders
Dictionary<String,List<String>>

Des en-têtes qui seront ajoutés à la requête.

cancellationToken
CancellationToken

Jeton d’annulation.

Retours

Task<Microsoft.Rest.HttpOperationResponse>

Un objet réponse contenant le corps de réponse et les en-têtes de réponse.

Implémente

Exceptions

Déclenché lorsque l’opération a renvoyé un code de statut invalide.

Microsoft.Rest.ValidationException

Jetée lorsqu’une valeur d’entrée ne correspond pas au type, à la plage ou au motif attendu.

Lancé lorsqu’un paramètre requis est nul.

Remarques

Supprimez une activité existante.

Certains canaux vous permettent de supprimer une activité existante, et si cette méthode réussit, elle supprime l’activité spécifiée.

S’applique à