---
title: "Aspose::Email::Storage::Pst::PersonalStorage::MergeWith method"
url: "https://reference.aspose.com/email/cpp/aspose.email.storage.pst/personalstorage/mergewith/"
product: "Aspose.Email for C++"
description: "Merges the pst storage with one or more other pst streams."
---


## MergeWith (1 of 2) {#mergewith_1}

Merges the pst storage with one or more other pst streams. Thus, the combined stream are sources.

**Returns:** void Aspose::Email::Storage::Pst::

```cpp
MergeWith(System::ArrayPtr< System::SharedPtr < System::IO::Stream >> sourceStreams)
```

| Parameter | Description |
| --- | --- |
| sourceStreams | The source streams. |

---

## MergeWith (2 of 2) {#mergewith_2}

Merges the pst storage with one or more other pst files. Thus, the combined files are sources.

**Returns:** void Aspose::Email::Storage::Pst::

```cpp
MergeWith(System::ArrayPtr< System::String > sourceFileNames)
```

| Parameter | Description |
| --- | --- |
| sourceFileNames | The source file names. |

