Partilhar via


ChatThreadClient.AddParticipantAsync Método

Definição

Adiciona um participante a um thread de forma assíncrona. Se o participante já existir, nenhuma alteração ocorrerá.

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

Parâmetros

participant
ChatParticipant

Participante a ser adicionado a uma conversa de chat.

cancellationToken
CancellationToken

O token de cancelamento a ser usado.

Retornos

Exceções

O servidor retornou um erro. Consulte Message para obter detalhes retornados do servidor.

Aplica-se a