Aspose::Email::Calendar::CalendarReader Class Reference

Allows read the calendar with multi events to the Appointment object from a file or stream. More...

Inherits Object.

Public Member Functions

System::SharedPtr< Appointmentget_Current () const
 Current read event. More...
 
 CalendarReader (System::String path)
 Initializes a new instance of CalendarReader with source file and default Appointment LoadOptions. More...
 
 CalendarReader (System::String path, System::SharedPtr< AppointmentLoadOptions > options)
 Initializes a new instance of CalendarReader with source file and Appointment LoadOptions. More...
 
 CalendarReader (System::SharedPtr< System::IO::Stream > stream)
 Initializes a new instance of CalendarReader with source stream and default Appointment LoadOptions. More...
 
 CalendarReader (System::SharedPtr< System::IO::Stream > stream, System::SharedPtr< AppointmentLoadOptions > options)
 Initializes a new instance of CalendarReader with source stream and Appointment LoadOptions. More...
 
bool NextEvent ()
 Reads next Event from source and save it to the Current. More...
 

Detailed Description

Allows read the calendar with multi events to the Appointment object from a file or stream.

Constructor & Destructor Documentation

◆ CalendarReader() [1/4]

Aspose::Email::Calendar::CalendarReader::CalendarReader ( System::String  path)

Initializes a new instance of CalendarReader with source file and default Appointment LoadOptions.

Parameters
pathPath to source file.

◆ CalendarReader() [2/4]

Aspose::Email::Calendar::CalendarReader::CalendarReader ( System::String  path,
System::SharedPtr< AppointmentLoadOptions options 
)

Initializes a new instance of CalendarReader with source file and Appointment LoadOptions.

Parameters
pathPath to source file.
optionsAdditional LoadOptions.

◆ CalendarReader() [3/4]

Aspose::Email::Calendar::CalendarReader::CalendarReader ( System::SharedPtr< System::IO::Stream >  stream)

Initializes a new instance of CalendarReader with source stream and default Appointment LoadOptions.

Parameters
streamSource stream.

◆ CalendarReader() [4/4]

Aspose::Email::Calendar::CalendarReader::CalendarReader ( System::SharedPtr< System::IO::Stream >  stream,
System::SharedPtr< AppointmentLoadOptions options 
)

Initializes a new instance of CalendarReader with source stream and Appointment LoadOptions.

Parameters
streamSource stream.
optionsAdditional LoadOptions.

Member Function Documentation

◆ get_Current()

System::SharedPtr<Appointment> Aspose::Email::Calendar::CalendarReader::get_Current ( ) const

Current read event.

◆ NextEvent()

bool Aspose::Email::Calendar::CalendarReader::NextEvent ( )

Reads next Event from source and save it to the Current.

Returns
True if success otherwise false.