Sdílet prostřednictvím


Conversations.DeleteConversationMemberWithHttpMessagesAsync Metoda

Definice

DeleteConversationMember.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse> DeleteConversationMemberWithHttpMessagesAsync (string conversationId, string memberId, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteConversationMemberWithHttpMessagesAsync : string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse>
override this.DeleteConversationMemberWithHttpMessagesAsync : string * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse>
Public Function DeleteConversationMemberWithHttpMessagesAsync (conversationId As String, memberId 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.

memberId
String

ID člena, který má být z této konverzace odstraněn.

customHeaders
Dictionary<String,List<String>>

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

cancellationToken
CancellationToken

Token zrušení.

Návraty

Task<Microsoft.Rest.HttpOperationResponse>

Objekt odpovědi obsahující tělo 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ž vstupní hodnota neodpovídá očekávanému datovému typu, rozsahu nebo vzoru.

Vyvolá se, pokud má povinný parametr hodnotu null.

Poznámky

Odstraní člena z konverzace.

Toto rozhraní REST API přebírá hodnoty ConversationId (Id konverzace) a memberId (typu řetězec) a odebere tohoto člena z konverzace. Pokud byl tento člen posledním členem konverzace, konverzace se také odstraní.

Platí pro