
## Save (1 of 2) {#save_1}

Saves the current message object to the specified stream.

**Returns:** void Aspose::Email::Mapi::Msg::

```cpp
Save(System::SharedPtr < System::IO::Stream > stream, MessageObjectSaveFormat format)
```

| Parameter | Description |
| --- | --- |
| stream | The stream to write to. |
| format | The format of the output data. |

---

## Save (2 of 2) {#save_2}

Saves the current message object to the specified file.

**Returns:** void Aspose::Email::Mapi::Msg::

```cpp
Save(System::String fileName, MessageObjectSaveFormat format)
```

| Parameter | Description |
| --- | --- |
| fileName | Name of the file. |
| format | The format of the output data. |

