
## Load (1 of 4) {#load_1}

Loads message from stream.

**Returns:** static System::SharedPtr < MapiMessage > Aspose::Email::Mapi::

```cpp
Load(System::SharedPtr < System::IO::Stream > stream)
```

| Parameter | Description |
| --- | --- |
| stream | Source stream System::IO::Stream . |

---

## Load (2 of 4) {#load_2}

Loads message from stream with additional options.

**Returns:** static System::SharedPtr < MapiMessage > Aspose::Email::Mapi::

```cpp
Load(System::SharedPtr < System::IO::Stream > stream, System::SharedPtr < LoadOptions > options)
```

| Parameter | Description |
| --- | --- |
| stream | Source stream System::IO::Stream . |
| options | Additional options LoadOptions . |

---

## Load (3 of 4) {#load_3}

Loads message from file.

**Returns:** static System::SharedPtr < MapiMessage > Aspose::Email::Mapi::

```cpp
Load(System::String fileName)
```

| Parameter | Description |
| --- | --- |
| fileName | Source file path System::String . |

---

## Load (4 of 4) {#load_4}

Loads message from file with additional options.

**Returns:** static System::SharedPtr < MapiMessage > Aspose::Email::Mapi::

```cpp
Load(System::String fileName, System::SharedPtr < LoadOptions > options)
```

| Parameter | Description |
| --- | --- |
| fileName | Source file path System::String . |
| options | Additional options LoadOptions . |

