---
title: "System::Collections::Generic::BaseSet::UnionWith method"
url: "https://reference.aspose.com/pdf/cpp/system.collections.generic/baseset/unionwith/"
product: "Aspose.PDF for C++ API Reference"
description: "How to use UnionWith method of System::Collections::Generic::BaseSet class in C++."
---

## BaseSet::UnionWith method




```cpp
void System::Collections::Generic::BaseSet<T, SET_T>::UnionWith(const SharedPtr<IEnumerable<T>> &other)
```

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [IEnumerable](../../ienumerable/)
* Class [BaseSet](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PDF for C++](../../../)
