Jaa


ActivityExtensions.RemoveMentionText(IMessageActivity, String) Method

Definition

Remove any mention text for given id from the Activity.Text property. For example, given the message @echoBot Hi Bot, this will remove "@echoBot", leaving "Hi Bot".

public static string RemoveMentionText (this Microsoft.Bot.Schema.IMessageActivity activity, string id);
static member RemoveMentionText : Microsoft.Bot.Schema.IMessageActivity * string -> string
<Extension()>
Public Function RemoveMentionText (activity As IMessageActivity, id As String) As String

Parameters

activity
IMessageActivity

activity. The Text property is modified by this method.

id
String

id to match.

Returns

new Activity.Text property value.

Applies to