## BaseSet::TryAdd method


Adds element into set.

```cpp
bool System::Collections::Generic::BaseSet<T, SET_T>::TryAdd(const T &item)
```


| Parameter | Type | Description |
| --- | --- | --- |
| item | const T\& | Item to add. |

### ReturnValue

True if element was added, false if already exists.

## See Also

* Class [BaseSet](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.PDF for C++](../../../)
