Partilhar via


TeamsInfo.SendMessageToListOfUsersAsync Método

Definição

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

public static System.Threading.Tasks.Task<string> SendMessageToListOfUsersAsync (Microsoft.Bot.Builder.ITurnContext turnContext, Microsoft.Bot.Schema.IActivity activity, System.Collections.Generic.List<Microsoft.Bot.Schema.Teams.TeamMember> teamsMembers, string tenantId, System.Threading.CancellationToken cancellationToken = default);
static member SendMessageToListOfUsersAsync : 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 SendMessageToListOfUsersAsync (turnContext As ITurnContext, activity As IActivity, teamsMembers As List(Of TeamMember), tenantId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of String)

Parâmetros

turnContext
ITurnContext

Inverta o contexto.

activity
IActivity

A atividade a enviar.

teamsMembers
List<TeamMember>

A lista de membros.

tenantId
String

O ID do locatário.

cancellationToken
CancellationToken

O token de cancelamento.

Devoluções

A operação Id.

Aplica-se a