Share via


ConversationsExtensions.DeleteConversationMemberAsync Method

Definition

DeleteConversationMember.

public static System.Threading.Tasks.Task DeleteConversationMemberAsync (this Microsoft.Bot.Connector.IConversations operations, string conversationId, string memberId, System.Threading.CancellationToken cancellationToken = default);
static member DeleteConversationMemberAsync : Microsoft.Bot.Connector.IConversations * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function DeleteConversationMemberAsync (operations As IConversations, conversationId As String, memberId As String, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

operations
IConversations

The operations group for this extension method.

conversationId
String

Conversation ID.

memberId
String

ID of the member to delete from this conversation.

cancellationToken
CancellationToken

The cancellation token.

Returns

A Task representing the asynchronous operation for the task.

Remarks

Deletes a member from a conversation.

This REST API takes a ConversationId and a memberId (of type string) and removes that member from the conversation. If that member was the last member of the conversation, the conversation will also be deleted.

Applies to