Partilhar via


TeamsInfo.SendMessageToListOfChannelsAsync Método

Definição

Envia uma mensagem para a lista fornecida de canais do Teams.

public static System.Threading.Tasks.Task<string> SendMessageToListOfChannelsAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Schema.IActivity activity, System.Collections.Generic.List<Microsoft.Bot.Schema.Teams.TeamMember> channelsMembers, string tenantId, System.Threading.CancellationToken cancellationToken = default);
static member SendMessageToListOfChannelsAsync : Microsoft.Bot.Builder.ITurnContext * Microsoft.Bot.Schema.IActivity * System.Collections.Generic.List<Microsoft.Bot.Schema.Teams.TeamMember> * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<string>
Public Shared Function SendMessageToListOfChannelsAsync (turnContext As ITurnContext, activity As IActivity, channelsMembers As List(Of TeamMember), tenantId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parâmetros

turnContext
ITurnContext

O contexto da viragem.

activity
IActivity

A atividade a enviar.

channelsMembers
List<TeamMember>

A lista de canais.

tenantId
String

O ID do locatário.

cancellationToken
CancellationToken

O token de cancelamento.

Devoluções

A operação Id.

Aplica-se a