## BaseSet::TryAdd method


Agrega un elemento al conjunto.

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


| Parámetro | Tipo | Descripción |
| --- | --- | --- |
| item | const T\& | Elemento a añadir. |

### ReturnValue

True si el elemento fue añadido, false si ya existe.

## Ver también

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