ActivityExtensions Class
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.
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. |