Aspose::Email::Calendar::Recurrences::CalendarRecurrence Class Reference

The main class, represents an iCalendar recurrence. More...

Inherits IEquatable< System::SharedPtr< Aspose::Email::Calendar::Recurrences::CalendarRecurrence > >.

Public Member Functions

ASPOSE_EMAIL_SHARED_API System::DateTime get_StartDate () const
 Gets the start date. More...
 
ASPOSE_EMAIL_SHARED_API void set_StartDate (System::DateTime value)
 Sets the start date. More...
 
ASPOSE_EMAIL_SHARED_API System::DateTime get_EndDate () const
 Gets the end date. More...
 
ASPOSE_EMAIL_SHARED_API void set_EndDate (System::DateTime value)
 Sets the end date. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< RecurrenceRuleCollectionget_RRules ()
 Gets the R rules. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< RecurrenceRuleCollectionget_ExRules ()
 Gets the ex rules. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< DateCollectionget_RDates ()
 Gets the R dates. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< DateCollectionget_ExDates ()
 Gets the ex dates. More...
 
ASPOSE_EMAIL_SHARED_API CalendarRecurrence ()
 Initializes a new instance of the CalendarRecurrence class. More...
 
ASPOSE_EMAIL_SHARED_API CalendarRecurrence (System::String pattern)
 Initializes a new instance of the CalendarRecurrence class. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< DateCollectionGenerateOccurrences ()
 Generates the occurrences. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< DateCollectionGenerateOccurrencesInternal ()
 Generates occurrences without Evaluation limitation.Use this method for internal calculation to avoid incorrect results. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< DateCollectionGenerateOccurrences (int32_t nNextOccurrences)
 Generates n next occurrences. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< DateCollectionGenerateOccurrencesInternal (int32_t nNextOccurrences)
 Generates n next occurrences without Evaluation limitation.Use this method for internal calculation to avoid incorrect results. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< DateCollectionGenerateOccurrences (System::DateTime rangeStart, System::DateTime rangeEnd)
 Generates the occurrences. More...
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< DateCollectionGenerateOccurrences (System::DateTime rangeEnd)
 
ASPOSE_EMAIL_SHARED_API System::SharedPtr< DateCollectionGenerateOccurrences (System::DateTime rangeStart, System::DateTime rangeEnd, int32_t nNextOccurrences)
 Generates n next occurrences. More...
 
ASPOSE_EMAIL_SHARED_API System::String ToiCalendar ()
 To iCalendar string. More...
 
virtual ASPOSE_EMAIL_SHARED_API bool Equals (System::SharedPtr< CalendarRecurrence > other)
 Determines whether the specified CalendarRecurrence is equal to this instance. More...
 
virtual ASPOSE_EMAIL_SHARED_API bool Equals (System::SharedPtr< System::Object > obj)
 Determines whether the specified Object is equal to the current Object. More...
 
virtual ASPOSE_EMAIL_SHARED_API int32_t GetHashCode ()
 Returns a hash code for this instance. More...
 
ASPOSE_EMAIL_SHARED_API int32_t GetHashCode () const override
 

Static Public Member Functions

static ASPOSE_EMAIL_SHARED_API System::SharedPtr< CalendarRecurrenceFromiCalendar (System::String pattern)
 Gets a recurrence pattern from iCalendar string. More...
 
static ASPOSE_EMAIL_SHARED_API System::SharedPtr< CalendarRecurrenceFromRecurrence (System::String xmlString)
 Gets a recurrence pattern from XML pattern string. More...
 
static ASPOSE_EMAIL_SHARED_API System::SharedPtr< CalendarRecurrenceFromRecurrence (System::SharedPtr< System::Xml::XmlElement > xmlElement)
 Gets a recurrence pattern from XmlElement. More...
 

Static Public Attributes

static ASPOSE_EMAIL_SHARED_API System::DateTime MaxEvaluationRangeEnd
 

Protected Member Functions

virtual ASPOSE_EMAIL_SHARED_API ~CalendarRecurrence ()
 

Friends

class Aspose::Email::Mapi::MapiTask
 
class Aspose::Email::Mapi::MapiCalendar
 
class Aspose::Email::Mapi::MapiCalendarRecurrencePatternFactory
 
ASPOSE_EMAIL_SHARED_API bool operator== (System::SharedPtr< CalendarRecurrence > left, System::SharedPtr< CalendarRecurrence > right)
 
ASPOSE_EMAIL_SHARED_API bool operator!= (System::SharedPtr< CalendarRecurrence > left, System::SharedPtr< CalendarRecurrence > right)
 

Detailed Description

The main class, represents an iCalendar recurrence.

Constructor & Destructor Documentation

◆ CalendarRecurrence() [1/2]

ASPOSE_EMAIL_SHARED_API Aspose::Email::Calendar::Recurrences::CalendarRecurrence::CalendarRecurrence ( )

Initializes a new instance of the CalendarRecurrence class.

◆ CalendarRecurrence() [2/2]

ASPOSE_EMAIL_SHARED_API Aspose::Email::Calendar::Recurrences::CalendarRecurrence::CalendarRecurrence ( System::String  pattern)

Initializes a new instance of the CalendarRecurrence class.

Parameters
patternThe pattern.

◆ ~CalendarRecurrence()

virtual ASPOSE_EMAIL_SHARED_API Aspose::Email::Calendar::Recurrences::CalendarRecurrence::~CalendarRecurrence ( )
protectedvirtual

Member Function Documentation

◆ Equals() [1/2]

virtual ASPOSE_EMAIL_SHARED_API bool Aspose::Email::Calendar::Recurrences::CalendarRecurrence::Equals ( System::SharedPtr< CalendarRecurrence other)
virtual

Determines whether the specified CalendarRecurrence is equal to this instance.

Parameters
otherThe CalendarRecurrence to compare with this instance.
Returns
true if the specified CalendarRecurrence is equal to this instance; otherwise, false.

◆ Equals() [2/2]

virtual ASPOSE_EMAIL_SHARED_API bool Aspose::Email::Calendar::Recurrences::CalendarRecurrence::Equals ( System::SharedPtr< System::Object >  obj)
virtual

Determines whether the specified Object is equal to the current Object.

Parameters
objThe Object to compare with the current Object.
Returns
Returns a boolean indicating if the passed in object obj is Equal to this.

◆ FromiCalendar()

static ASPOSE_EMAIL_SHARED_API System::SharedPtr<CalendarRecurrence> Aspose::Email::Calendar::Recurrences::CalendarRecurrence::FromiCalendar ( System::String  pattern)
static

Gets a recurrence pattern from iCalendar string.

Parameters
patternStringSystem::String representation of iCalendar.
Returns
Recurrence patternCalendarRecurrence.

◆ FromRecurrence() [1/2]

static ASPOSE_EMAIL_SHARED_API System::SharedPtr<CalendarRecurrence> Aspose::Email::Calendar::Recurrences::CalendarRecurrence::FromRecurrence ( System::SharedPtr< System::Xml::XmlElement >  xmlElement)
static

Gets a recurrence pattern from XmlElement.

Parameters
xmlElementXmlElementSystem::Xml::XmlElement of pattern.
Returns
Recurrence patternCalendarRecurrence.

◆ FromRecurrence() [2/2]

static ASPOSE_EMAIL_SHARED_API System::SharedPtr<CalendarRecurrence> Aspose::Email::Calendar::Recurrences::CalendarRecurrence::FromRecurrence ( System::String  xmlString)
static

Gets a recurrence pattern from XML pattern string.

Parameters
xmlStringXML stringSystem::String of pattern.
Returns
Recurrence patternCalendarRecurrence.

◆ GenerateOccurrences() [1/5]

ASPOSE_EMAIL_SHARED_API System::SharedPtr<DateCollection> Aspose::Email::Calendar::Recurrences::CalendarRecurrence::GenerateOccurrences ( )

Generates the occurrences.

Returns
Collection of datesDateCollection.
Exceptions
Exceptionthrows if StartDate is not set.

◆ GenerateOccurrences() [2/5]

ASPOSE_EMAIL_SHARED_API System::SharedPtr<DateCollection> Aspose::Email::Calendar::Recurrences::CalendarRecurrence::GenerateOccurrences ( int32_t  nNextOccurrences)

Generates n next occurrences.

Parameters
nNextOccurrencesThe amount of needed occurrences.
Returns
Collection of datesDateCollection.
Exceptions
Exceptionthrows if StartDate is not set.
ArgumentOutOfRangeExceptionthrows if amount of needed occurrences is less or equal zero.

◆ GenerateOccurrences() [3/5]

ASPOSE_EMAIL_SHARED_API System::SharedPtr<DateCollection> Aspose::Email::Calendar::Recurrences::CalendarRecurrence::GenerateOccurrences ( System::DateTime  rangeEnd)

◆ GenerateOccurrences() [4/5]

ASPOSE_EMAIL_SHARED_API System::SharedPtr<DateCollection> Aspose::Email::Calendar::Recurrences::CalendarRecurrence::GenerateOccurrences ( System::DateTime  rangeStart,
System::DateTime  rangeEnd 
)

Generates the occurrences.

Parameters
rangeStartThe range start.
rangeEndThe range end.
Returns
Collection of datesDateCollection.
Exceptions
Exceptionthrows if StartDate is not set

◆ GenerateOccurrences() [5/5]

ASPOSE_EMAIL_SHARED_API System::SharedPtr<DateCollection> Aspose::Email::Calendar::Recurrences::CalendarRecurrence::GenerateOccurrences ( System::DateTime  rangeStart,
System::DateTime  rangeEnd,
int32_t  nNextOccurrences 
)

Generates n next occurrences.

Parameters
rangeStartThe range start.
rangeEndThe range end.
nNextOccurrencesThe amount of needed occurrences.
Returns
Collection of datesDateCollection.
Exceptions
Exceptionthrows if StartDate is not set.
ArgumentOutOfRangeExceptionthrows if amount of needed occurrences is less or equal zero.

◆ GenerateOccurrencesInternal() [1/2]

ASPOSE_EMAIL_SHARED_API System::SharedPtr<DateCollection> Aspose::Email::Calendar::Recurrences::CalendarRecurrence::GenerateOccurrencesInternal ( )

Generates occurrences without Evaluation limitation.Use this method for internal calculation to avoid incorrect results.

Returns
Collection of datesDateCollection.
Exceptions
Exceptionthrows if StartDate is not set.

◆ GenerateOccurrencesInternal() [2/2]

ASPOSE_EMAIL_SHARED_API System::SharedPtr<DateCollection> Aspose::Email::Calendar::Recurrences::CalendarRecurrence::GenerateOccurrencesInternal ( int32_t  nNextOccurrences)

Generates n next occurrences without Evaluation limitation.Use this method for internal calculation to avoid incorrect results.

Parameters
nNextOccurrencesThe amount of needed occurrences.
Returns
Collection of datesDateCollection.
Exceptions
Exceptionthrows if StartDate is not set.
ArgumentOutOfRangeExceptionthrows if amount of needed occurrences is less or equal zero.

◆ get_EndDate()

ASPOSE_EMAIL_SHARED_API System::DateTime Aspose::Email::Calendar::Recurrences::CalendarRecurrence::get_EndDate ( ) const

Gets the end date.

The end date.

◆ get_ExDates()

ASPOSE_EMAIL_SHARED_API System::SharedPtr<DateCollection> Aspose::Email::Calendar::Recurrences::CalendarRecurrence::get_ExDates ( )

Gets the ex dates.

The ex dates.

◆ get_ExRules()

ASPOSE_EMAIL_SHARED_API System::SharedPtr<RecurrenceRuleCollection> Aspose::Email::Calendar::Recurrences::CalendarRecurrence::get_ExRules ( )

Gets the ex rules.

The ex rules.

◆ get_RDates()

ASPOSE_EMAIL_SHARED_API System::SharedPtr<DateCollection> Aspose::Email::Calendar::Recurrences::CalendarRecurrence::get_RDates ( )

Gets the R dates.

The R dates.

◆ get_RRules()

ASPOSE_EMAIL_SHARED_API System::SharedPtr<RecurrenceRuleCollection> Aspose::Email::Calendar::Recurrences::CalendarRecurrence::get_RRules ( )

Gets the R rules.

The R rules.

◆ get_StartDate()

ASPOSE_EMAIL_SHARED_API System::DateTime Aspose::Email::Calendar::Recurrences::CalendarRecurrence::get_StartDate ( ) const

Gets the start date.

The start date.

◆ GetHashCode() [1/2]

virtual ASPOSE_EMAIL_SHARED_API int32_t Aspose::Email::Calendar::Recurrences::CalendarRecurrence::GetHashCode ( )
virtual

Returns a hash code for this instance.

Returns
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

◆ GetHashCode() [2/2]

ASPOSE_EMAIL_SHARED_API int32_t Aspose::Email::Calendar::Recurrences::CalendarRecurrence::GetHashCode ( ) const
override

◆ set_EndDate()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::Calendar::Recurrences::CalendarRecurrence::set_EndDate ( System::DateTime  value)

Sets the end date.

The end date.

◆ set_StartDate()

ASPOSE_EMAIL_SHARED_API void Aspose::Email::Calendar::Recurrences::CalendarRecurrence::set_StartDate ( System::DateTime  value)

Sets the start date.

The start date.

◆ ToiCalendar()

ASPOSE_EMAIL_SHARED_API System::String Aspose::Email::Calendar::Recurrences::CalendarRecurrence::ToiCalendar ( )

To iCalendar string.

Returns
StringSystem::String representation of RecurrencePattern.

Friends And Related Function Documentation

◆ Aspose::Email::Mapi::MapiCalendar

friend class Aspose::Email::Mapi::MapiCalendar
friend

◆ Aspose::Email::Mapi::MapiCalendarRecurrencePatternFactory

◆ Aspose::Email::Mapi::MapiTask

friend class Aspose::Email::Mapi::MapiTask
friend

◆ operator!=

ASPOSE_EMAIL_SHARED_API bool operator!= ( System::SharedPtr< CalendarRecurrence left,
System::SharedPtr< CalendarRecurrence right 
)
friend

◆ operator==

ASPOSE_EMAIL_SHARED_API bool operator== ( System::SharedPtr< CalendarRecurrence left,
System::SharedPtr< CalendarRecurrence right 
)
friend

Member Data Documentation

◆ MaxEvaluationRangeEnd

ASPOSE_EMAIL_SHARED_API System::DateTime Aspose::Email::Calendar::Recurrences::CalendarRecurrence::MaxEvaluationRangeEnd
static