## CreateReader(Stream, MboxLoadOptions) {#createreader}

Creates the instance of reader.

```csharp
public static MboxStorageReader CreateReader(Stream stream, MboxLoadOptions options)
```

| Parameter | Type | Description |
| --- | --- | --- |
| stream | Stream | The stream. |
| options | MboxLoadOptions | additional options when loading a Mbox storage[`MboxLoadOptions`](../../mboxloadoptions/). |

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentNullException |  |

### See Also

* class [MboxLoadOptions](../../mboxloadoptions/)
* class [MboxStorageReader](../)
* namespace [Aspose.Email.Storage.Mbox](../../mboxstoragereader/)
* assembly [Aspose.Email](../../../)

---

## CreateReader(string, MboxLoadOptions) {#createreader_1}

Creates the instance of reader.

```csharp
public static MboxStorageReader CreateReader(string fileName, MboxLoadOptions options)
```

| Parameter | Type | Description |
| --- | --- | --- |
| fileName | String |  |
| options | MboxLoadOptions | additional options when loading a Mbox storage[`MboxLoadOptions`](../../mboxloadoptions/). |

### Exceptions

| exception | condition |
| --- | --- |
| ArgumentNullException |  |

### See Also

* class [MboxLoadOptions](../../mboxloadoptions/)
* class [MboxStorageReader](../)
* namespace [Aspose.Email.Storage.Mbox](../../mboxstoragereader/)
* assembly [Aspose.Email](../../../)


