---
title: "Aspose::Email::Calendar::Recurrences::ByNumberCollection class"
url: "https://reference.aspose.com/email/cpp/aspose.email.calendar.recurrences/bynumbercollection/"
product: "Aspose.Email for C++"
description: "Represents a set of months, weeks, days, hours, minutes or seconds in a recurrence rule."
---


## ByNumberCollection class

Represents a set of months, weeks, days, hours, minutes or seconds in a recurrence rule.

Corresponds to various BYXXX parts such as BYDAY, BYMONTH of a recurrence rule.

Most of the ByXXX properties of RecurrenceRule are implemented as ByNumberCollection .

## Constructors

| Name | Description |
| --- | --- |
| [ByNumberCollection (2 overloads)](./bynumbercollection/) |  |

## Methods

| Name | Description |
| --- | --- |
| [Add (2 overloads)](./add/) | Adds an array of month, week, day, hour, minute or second to the collection. |
| [Equals (2 overloads)](./equals/) | Determines whether the specified ByNumberCollection is equal to this instance. |
| [GetHashCode](./gethashcode/) | GetHashCode returns a hash function for this object. |
| [SetTemplateWeakPtr](./settemplateweakptr/) |  |

