Class FollowUpManager
Contents
[
Hide
]FollowUpManager class
Manages Outlook follow-up flags, reminders, categories and voting buttons of a message.
public static class FollowUpManager
Methods
| Name | Description |
|---|---|
| static AddCategory(MapiMessageItemBase, string) | Adds a category to the message. |
| static AddVotingButton(MapiMessageItemBase, string) | Adds a voting button to the message. |
| static ClearCategories(MapiMessageItemBase) | Removes all categories from the message. |
| static ClearFlag(MapiMessageItemBase) | Removes the follow-up flag and the reminder from the message. |
| static ClearVotingButtons(MapiMessageItemBase) | Removes all voting buttons from the message. |
| static GetCategories(MapiMessageItemBase) | Gets the categories of the message. |
| static GetOptions(MapiMessageItemBase) | Gets the follow-up flag, reminder, categories and voting buttons of the message. |
| static GetReactions(MapiMessageItemBase) | Gets the reactions (like, heart and so on) that users have left on the message. |
| static GetVotingButtons(MapiMessageItemBase) | Gets the voting buttons of the message. |
| static MarkAsCompleted(MapiMessageItemBase) | Marks the follow-up flag of the message as completed. |
| static RemoveCategory(MapiMessageItemBase, string) | Removes a category from the message. |
| static RemoveVotingButton(MapiMessageItemBase, string) | Removes a voting button from the message. |
| static SetFlag(MapiMessageItemBase, string) | Sets a follow-up flag on the message. |
| static SetFlag(MapiMessageItemBase, string, DateTime, DateTime) | Sets a follow-up flag with a start date and a due date on the message. |
| static SetFlagForRecipients(MapiMessageItemBase, string) | Sets a flag on a draft message that reminds its recipients to follow up. |
| static SetFlagForRecipients(MapiMessageItemBase, string, DateTime) | Sets a flag with a reminder on a draft message that reminds its recipients to follow up. |
| static SetOptions(MapiMessageItemBase, FollowUpOptions) | Sets the follow-up flag, reminder, categories and voting buttons of the message in one call. |
Remarks
The methods work with any MapiMessageItemBase — a MapiMessage, MapiContact, MapiTask and so on — and write the same MAPI properties that Outlook uses, so the result is shown in Outlook as if it had been set there.
- follow-up flags:
SetFlag,SetFlagForRecipients,MarkAsCompleted,ClearFlag; * several settings at once:SetOptionsandGetOptionswithFollowUpOptions; * categories:AddCategory,RemoveCategory,GetCategories,ClearCategories; * voting buttons:AddVotingButton,RemoveVotingButton,GetVotingButtons,ClearVotingButtons; * reactions:GetReactions.
Examples
The following example shows how to use FollowUpManager to add follow-up flags and categories to a MAPI message.
[C#]
// Create a MapiMessage from MailMessage
MailMessage mailMessage = MailMessage.Load("message.eml");
MapiMessage mapiMessage = MapiMessage.FromMailMessage(mailMessage);
// Set a follow-up flag
FollowUpManager.SetFlag(mapiMessage, "This is a follow-up message");
// Set categories
FollowUpManager.SetCategory(mapiMessage, "Important");
FollowUpManager.SetCategory(mapiMessage, "Work");
// Mark as complete
FollowUpManager.MarkAsComplete(mapiMessage);
// Save the message with follow-up information
mapiMessage.Save("message_with_flag.msg", SaveOptions.DefaultMsgUnicode);
[Visual Basic]
' Create a MapiMessage from MailMessage
Dim mailMessage As MailMessage = MailMessage.Load("message.eml")
Dim mapiMessage As MapiMessage = MapiMessage.FromMailMessage(mailMessage)
' Set a follow-up flag
FollowUpManager.SetFlag(mapiMessage, "This is a follow-up message")
' Set categories
FollowUpManager.SetCategory(mapiMessage, "Important")
FollowUpManager.SetCategory(mapiMessage, "Work")
' Mark as complete
FollowUpManager.MarkAsComplete(mapiMessage)
' Save the message with follow-up information
mapiMessage.Save("message_with_flag.msg", SaveOptions.DefaultMsgUnicode)
See Also
- namespace Aspose.Email.Mapi
- assembly Aspose.Email