
## SetFlag (1 of 2) {#setflag_1}

Sets the follow-up flag for a message.

**Returns:** static void Aspose::Email::Mapi::

```cpp
SetFlag(System::SharedPtr < MapiMessageItemBase > message, System::String flagRequest)
```

| Parameter | Description |
| --- | --- |
| message | The MapiMessageItemBase in which a flag will be set. |
| flagRequest | A string indicating the requested action for an e-mail message. |

---

## SetFlag (2 of 2) {#setflag_2}

Sets the follow-up flag for a message.

**Returns:** static void Aspose::Email::Mapi::

```cpp
SetFlag(System::SharedPtr < MapiMessageItemBase > message, System::String flagRequest, System::DateTime startDate, System::DateTime dueDate)
```

| Parameter | Description |
| --- | --- |
| message | The MapiMessageItemBase in which a flag will be set. |
| flagRequest | A string indicating the requested action for an e-mail message. |
| startDate | The start date. |
| dueDate | The due date. |

