Class FollowUpOptions
Contents
[
Hide
]FollowUpOptions class
Represents configuration options for follow-up flags, reminders, categories, and voting buttons in Outlook messages. This class encapsulates all the properties needed to set follow-up behavior on MapiMessage objects through the FollowUpManager class.
public sealed class FollowUpOptions
Constructors
| Name | Description |
|---|---|
| FollowUpOptions() | Initializes a new instance of the FollowUpOptions class. |
| FollowUpOptions(string) | Initializes a new instance of the FollowUpOptions class. |
| FollowUpOptions(string, DateTime, DateTime) | Initializes a new instance of the FollowUpOptions class. |
| FollowUpOptions(string, DateTime, DateTime, DateTime) | Initializes a new instance of the FollowUpOptions class. |
Properties
| Name | Description |
|---|---|
| Categories { get; set; } | Gets or sets string that represents list of the categories, separated by semicolons (;). |
| CodePage { get; set; } | Gets or sets the code page. |
| DueDate { get; set; } | Gets or sets a date indicating the due date for the flagged message. |
| FlagRequest { get; set; } | Gets or sets a string indicating the requested action for an e-mail message. |
| IsCompleted { get; } | Gets a value indicating whether the Message object was flagged as completed. |
| RecipientsFlagRequest { get; set; } | Gets or sets a string indicating the requested action for recipients of an e-mail message. |
| RecipientsReminderTime { get; set; } | Gets or sets a date for recipients indicating the date and time at which the reminder should occur. |
| ReminderTime { get; set; } | Gets or sets a date indicating the date and time at which the reminder should occur. |
| StartDate { get; set; } | Gets or sets a date specifying the starting date and time for the flagged message. |
| VotingButtons { get; set; } | Gets or sets string that represents list of the voting buttons names, separated by semicolons (;). |
Remarks
Use this class to configure follow-up settings such as flag request text, start date, due date, reminder time, categories, and voting buttons. The FlagRequest property sets the follow-up text, StartDate and DueDate define the task timeline, Categories specifies message categories, and VotingButtons configures voting response options.
Examples
The following example shows how to use FollowUpOptions to configure follow-up settings for a message.
[C#]
// Create follow-up options with flag request
var options = new FollowUpOptions("Follow up on this message")
{
StartDate = DateTime.Now,
DueDate = DateTime.Now.AddDays(7),
ReminderTime = DateTime.Now.AddHours(1),
Categories = "Important;Work",
VotingButtons = "Approve;Reject;More Information"
};
// Mark as completed
options.MarkAsCompleted(true);
// Apply options to a MapiMessage
MapiMessage message = MapiMessage.FromFile("message.msg");
FollowUpManager.SetOptions(message, options);
// Save the message with follow-up settings
message.Save("message_with_options.msg", SaveOptions.DefaultMsgUnicode);
[Visual Basic]
' Create follow-up options with flag request
Dim options As New FollowUpOptions("Follow up on this message") With {
.StartDate = DateTime.Now,
.DueDate = DateTime.Now.AddDays(7),
.ReminderTime = DateTime.Now.AddHours(1),
.Categories = "Important;Work",
.VotingButtons = "Approve;Reject;More Information"
}
' Mark as completed
options.MarkAsCompleted(True)
' Apply options to a MapiMessage
Dim message As MapiMessage = MapiMessage.FromFile("message.msg")
FollowUpManager.SetOptions(message, options)
' Save the message with follow-up settings
message.Save("message_with_options.msg", SaveOptions.DefaultMsgUnicode)
See Also
- namespace Aspose.Email.Mapi
- assembly Aspose.Email