Partilhar via


ChatThreadClient.AddParticipants Método

Definição

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

public virtual Azure.Response<Azure.Communication.Chat.AddChatParticipantsResult> AddParticipants (System.Collections.Generic.IEnumerable<Azure.Communication.Chat.ChatParticipant> participants, System.Threading.CancellationToken cancellationToken = default);
abstract member AddParticipants : seq<Azure.Communication.Chat.ChatParticipant> * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.Chat.AddChatParticipantsResult>
override this.AddParticipants : seq<Azure.Communication.Chat.ChatParticipant> * System.Threading.CancellationToken -> Azure.Response<Azure.Communication.Chat.AddChatParticipantsResult>
Public Overridable Function AddParticipants (participants As IEnumerable(Of ChatParticipant), Optional cancellationToken As CancellationToken = Nothing) As Response(Of AddChatParticipantsResult)

Parâmetros

participants
IEnumerable<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