## BaseSet::TryAdd method


يضيف عنصرًا إلى المجموعة.

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


| Parameter | Type | الوصف |
| --- | --- | --- |
| العنصر | const T\& | عنصر للإضافة. |

### ReturnValue

صحيح إذا تم إضافة العنصر، خطأ إذا كان موجودًا بالفعل.

## انظر أيضًا

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