ActivityExtensions.RemoveMentionText(IMessageActivity, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.