Udostępnij za pośrednictwem


ChatThreadClient.RemoveParticipantAsync Method

Definition

Remove a participant from a thread asynchronously.

public virtual System.Threading.Tasks.Task<Azure.Response> RemoveParticipantAsync (Azure.Communication.CommunicationIdentifier identifier, System.Threading.CancellationToken cancellationToken = default);
abstract member RemoveParticipantAsync : Azure.Communication.CommunicationIdentifier * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
override this.RemoveParticipantAsync : Azure.Communication.CommunicationIdentifier * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function RemoveParticipantAsync (identifier As CommunicationIdentifier, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response)

Parameters

identifier
CommunicationIdentifier

CommunicationIdentifier to be removed from the chat thread participants.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

The server returned an error. See Message for details returned from the server.

Applies to