Dela via


TeamsInfo.SendMessageToAllUsersInTeamAsync Metod

Definition

Skickar ett meddelande till alla användare i ett team.

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

Parametrar

turnContext
ITurnContext

Turkontexten.

activity
IActivity

Aktiviteten som ska skickas till användarna i teamet.

teamId
String

Team-ID:t.

tenantId
String

Klientorganisations-ID:t.

cancellationToken
CancellationToken

Annulleringstoken.

Returer

Åtgärds-ID:t.

Gäller för