ActivityExtensions Class

Definition

Helper functions for Message Activities.

public static class ActivityExtensions
type ActivityExtensions = class
Public Module ActivityExtensions
Inheritance
ActivityExtensions

Methods

MentionsId(IMessageActivity, String)

Is there a mention of Id in the Text Property.

MentionsRecipient(IMessageActivity)

Is there a mention of Recipient.Id in the Text Property.

RemoveMentionText(IMessageActivity, String)

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".

RemoveRecipientMention(IMessageActivity)

Remove recipient mention text from Text property. Use with caution because this function is altering the text on the Activity.

Applies to