Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

ActivityExtensions.RemoveRecipientMention(IMessageActivity) Method

Definition

Namespace:
Microsoft.Bot.Schema
Assembly:
Microsoft.Bot.Schema.dll
Package:
Microsoft.Bot.Schema v4.22.7

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 recipient mention text from Text property. Use with caution because this function is altering the text on the Activity.

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

Parameters

activity
IMessageActivity

.

Returns

new .Text property value.

Applies to