Sdílet prostřednictvím


Conversations.DeleteActivityWithHttpMessagesAsync Metoda

Definice

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)

Parametry

conversationId
String

ID konverzace.

activityId
String

activityId k odstranění.

customHeaders
Dictionary<String,List<String>>

Hlavičky, které budou přidány do žádosti.

cancellationToken
CancellationToken

Token zrušení.

Návraty

Task<Microsoft.Rest.HttpOperationResponse>

Objekt odpovědi obsahující text odpovědi a hlavičky odpovědi.

Implementuje

Výjimky

Vyvolá se, když operace vrátila neplatný stavový kód.

Microsoft.Rest.ValidationException

Vyvolá se, když se vstupní hodnota neshoduje s očekávaným datovým typem, rozsahem nebo vzorem.

Vyvolá se, když má požadovaný parametr hodnotu null.

Poznámky

Odstraňte existující aktivitu.

Některé kanály umožňují odstranit existující aktivitu a v případě úspěchu tato metoda odebere zadanou aktivitu.

Platí pro