---
title: "Aspose::Email::Calendar::Recurrences::RecurrencePattern::set_Occurs method"
url: "https://reference.aspose.com/email/cpp/aspose.email.calendar.recurrences/recurrencepattern/set_occurs/"
product: "Aspose.Email for C++"
description: "Sets the number of occurrences of the recurrence pattern."
---


## set_Occurs {#set_occurs}

Sets the number of occurrences of the recurrence pattern.

**Returns:** void Aspose::Email::Calendar::Recurrences::

```cpp
set_Occurs(int32_t value)
```

| Parameter | Description |
| --- | --- |
| value |  |

