Represents a set of months, weeks, days, hours, minutes or seconds in a recurrence rule.
More...
Inherits System::Collections::Generic::ListExt< int32_t >, and IEquatable< System::SharedPtr< Aspose::Email::Calendar::Recurrences::ByNumberCollection > >.
|
| ByNumberCollection (int32_t min, int32_t max, bool isAllowNegative) |
|
| ByNumberCollection (System::SharedPtr< ByNumberCollection > collection) |
|
int32_t | Add (int32_t value) |
| Adds a month, week, day, hour, minute or second to the collection. More...
|
|
void | Add (const System::ArrayPtr< int32_t > &values) |
| Adds an array of month, week, day, hour, minute or second to the collection. More...
|
|
bool | Equals (System::SharedPtr< ByNumberCollection > other) override |
| Determines whether the specified ByNumberCollection is equal to this instance. More...
|
|
bool | Equals (System::SharedPtr< System::Object > obj) override |
| Determines whether the specified Object is equal to the current Object. More...
|
|
int32_t | GetHashCode () const override |
| GetHashCode returns a hash function for this object. More...
|
|
void | SetTemplateWeakPtr (uint32_t argument) override |
|
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.
◆ ByNumberCollection() [1/2]
Aspose::Email::Calendar::Recurrences::ByNumberCollection::ByNumberCollection |
( |
int32_t |
min, |
|
|
int32_t |
max, |
|
|
bool |
isAllowNegative |
|
) |
| |
◆ ByNumberCollection() [2/2]
Aspose::Email::Calendar::Recurrences::ByNumberCollection::ByNumberCollection |
( |
System::SharedPtr< ByNumberCollection > |
collection | ) |
|
◆ ~ByNumberCollection()
virtual Aspose::Email::Calendar::Recurrences::ByNumberCollection::~ByNumberCollection |
( |
| ) |
|
|
protectedvirtual |
◆ Add() [1/2]
void Aspose::Email::Calendar::Recurrences::ByNumberCollection::Add |
( |
const System::ArrayPtr< int32_t > & |
values | ) |
|
Adds an array of month, week, day, hour, minute or second to the collection.
- Parameters
-
◆ Add() [2/2]
int32_t Aspose::Email::Calendar::Recurrences::ByNumberCollection::Add |
( |
int32_t |
value | ) |
|
Adds a month, week, day, hour, minute or second to the collection.
Throws an exception if the value is outside of the valid range for the time unit of this collection.
- Parameters
-
- Returns
- The zero-based index of the newly added item.
◆ Equals() [1/2]
bool Aspose::Email::Calendar::Recurrences::ByNumberCollection::Equals |
( |
System::SharedPtr< ByNumberCollection > |
other | ) |
|
|
override |
Determines whether the specified ByNumberCollection is equal to this instance.
- Parameters
-
- Returns
true
if the specified ByNumberCollection is equal to this instance; otherwise, false
.
◆ Equals() [2/2]
bool Aspose::Email::Calendar::Recurrences::ByNumberCollection::Equals |
( |
System::SharedPtr< System::Object > |
obj | ) |
|
|
override |
Determines whether the specified Object is equal to the current Object.
- Parameters
-
obj | The Object to compare with the current Object. |
- Returns
- Returns a boolean indicating if the passed in object obj is Equal to this.
◆ GetHashCode()
int32_t Aspose::Email::Calendar::Recurrences::ByNumberCollection::GetHashCode |
( |
| ) |
const |
|
override |
GetHashCode returns a hash function for this object.
- Returns
- Returns a hash function for this object.
◆ SetTemplateWeakPtr()
void Aspose::Email::Calendar::Recurrences::ByNumberCollection::SetTemplateWeakPtr |
( |
uint32_t |
argument | ) |
|
|
override |
◆ Aspose::Email::Calendar::Recurrences::RecurrenceRule