Class FollowUpManager
Provides static methods for working with voting buttons, follow-up flags, and color categories on MapiMessage objects.
Inherited Members
Namespace: DRIT.Mail.Mapi.API
Assembly: DRIT.Mail.dll
Syntax
public static class FollowUpManager
Methods
View SourceAddCategory(MapiMessage, string)
Adds a color category to the specified message.
Declaration
public static void AddCategory(MapiMessage message, string category)
Parameters
| Type | Name | Description |
|---|---|---|
| MapiMessage | message | The message to modify. |
| string | category | The category name to add. |
AddVotingButton(MapiMessage, string)
Adds a single voting button to the specified message.
Declaration
public static void AddVotingButton(MapiMessage message, string buttonLabel)
Parameters
| Type | Name | Description |
|---|---|---|
| MapiMessage | message | The message to modify. |
| string | buttonLabel | The label of the voting button to add. |
ClearCategories(MapiMessage)
Removes all color categories from the specified message.
Declaration
public static void ClearCategories(MapiMessage message)
Parameters
| Type | Name | Description |
|---|---|---|
| MapiMessage | message | The message to modify. |
ClearVotingButtons(MapiMessage)
Removes all voting buttons from the specified message.
Declaration
public static void ClearVotingButtons(MapiMessage message)
Parameters
| Type | Name | Description |
|---|---|---|
| MapiMessage | message | The message to modify. |
GetCategories(MapiMessage)
Gets the list of color categories from the specified message.
Declaration
public static IList<string> GetCategories(MapiMessage message)
Parameters
| Type | Name | Description |
|---|---|---|
| MapiMessage | message | The message to read categories from. |
Returns
| Type | Description |
|---|---|
| IList<string> | An IList<T> of category names. |
GetOptions(MapiMessage)
Gets the follow-up options (including voting buttons) from the specified message.
Declaration
public static FollowUpOptions GetOptions(MapiMessage message)
Parameters
| Type | Name | Description |
|---|---|---|
| MapiMessage | message | The message to read options from. |
Returns
| Type | Description |
|---|---|
| FollowUpOptions | A FollowUpOptions instance with the current voting buttons. |
GetVotingButtons(MapiMessage)
Gets the collection of voting button labels from the specified message.
Declaration
public static IList<string> GetVotingButtons(MapiMessage message)
Parameters
| Type | Name | Description |
|---|---|---|
| MapiMessage | message | The message to read voting buttons from. |
Returns
| Type | Description |
|---|---|
| IList<string> | An IList<T> of voting button labels. |
RemoveCategory(MapiMessage, string)
Removes a color category from the specified message.
Declaration
public static void RemoveCategory(MapiMessage message, string category)
Parameters
| Type | Name | Description |
|---|---|---|
| MapiMessage | message | The message to modify. |
| string | category | The category name to remove. |
RemoveVotingButton(MapiMessage, string)
Removes a single voting button from the specified message.
Declaration
public static void RemoveVotingButton(MapiMessage message, string buttonLabel)
Parameters
| Type | Name | Description |
|---|---|---|
| MapiMessage | message | The message to modify. |
| string | buttonLabel | The label of the voting button to remove. |
SetOptions(MapiMessage, FollowUpOptions)
Sets the follow-up options (including voting buttons) on the specified message.
Declaration
public static void SetOptions(MapiMessage message, FollowUpOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| MapiMessage | message | The message to modify. |
| FollowUpOptions | options | The follow-up options to apply. |