## BaseSet::TryAdd method


Aggiunge un elemento al set.

```cpp
bool System::Collections::Generic::BaseSet<T, SET_T>::TryAdd(const T &item)
```


| Parametro | Tipo | Descrizione |
| --- | --- | --- |
| item | const T\& | Elemento da aggiungere. |

### ReturnValue

True se l'elemento è stato aggiunto, false se esiste già.

## Vedi anche

* Class [BaseSet](../)
* Namespace [System::Collections::Generic](../../)
* Library [Aspose.Page for C++](../../../)
