Partilhar via


ChatThreadClient.AddParticipant(ChatParticipant, CancellationToken) Método

Definição

Adiciona participantes a um thread. Se os participantes já existirem, nenhuma alteração ocorrerá.

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

Parâmetros

participant
ChatParticipant

Participantes a serem adicionados a um thread 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