Share via


TeamsActivityExtensions.TeamsNotifyUser Method

Definition

Overloads

TeamsNotifyUser(IActivity)

Configures the current activity to generate a notification within Teams.

TeamsNotifyUser(IActivity, Boolean, String)

Configures the current activity to generate a notification within Teams.

TeamsNotifyUser(IActivity)

Configures the current activity to generate a notification within Teams.

public static void TeamsNotifyUser (this Microsoft.Bot.Schema.IActivity activity);
static member TeamsNotifyUser : Microsoft.Bot.Schema.IActivity -> unit
<Extension()>
Public Sub TeamsNotifyUser (activity As IActivity)

Parameters

activity
IActivity

The current activity.

Applies to

TeamsNotifyUser(IActivity, Boolean, String)

Configures the current activity to generate a notification within Teams.

public static void TeamsNotifyUser (this Microsoft.Bot.Schema.IActivity activity, bool alertInMeeting, string externalResourceUrl = default);
static member TeamsNotifyUser : Microsoft.Bot.Schema.IActivity * bool * string -> unit
<Extension()>
Public Sub TeamsNotifyUser (activity As IActivity, alertInMeeting As Boolean, Optional externalResourceUrl As String = Nothing)

Parameters

activity
IActivity

The current activity.

alertInMeeting
Boolean

Sent to a meeting chat, this will cause the Teams client to render it in a notification popup as well as in the chat thread.

externalResourceUrl
String

Url to external resource. Must be included in manifest's valid domains.

Applies to