Language

MessageActivityInput.AddMention(TeamsChannelAccount, String, Boolean) Method

Definition

Adds a mention (@mention) entity and optionally prepends mention text.

public Microsoft.Teams.Apps.MessageActivityInput AddMention(Microsoft.Teams.Apps.Schema.TeamsChannelAccount account, string? text = default, bool addText = true);
member this.AddMention : Microsoft.Teams.Apps.Schema.TeamsChannelAccount * string * bool -> Microsoft.Teams.Apps.MessageActivityInput
Public Function AddMention (account As TeamsChannelAccount, Optional text As String = Nothing, Optional addText As Boolean = true) As MessageActivityInput

Parameters

text
String
addText
Boolean

Returns

Applies to