Aspose::Email::Calendar::CalendarWriter Class Reference

Allows write the set of Events in one ics file or stream. More...

Inherits IDisposable.

Public Member Functions

 CalendarWriter (System::String path)
 Initializes a new instance of CalendarReader with source file and default AppointmentIcsSaveOptions. More...
 
 CalendarWriter (System::SharedPtr< System::IO::Stream > stream)
 Initializes a new instance of CalendarReader with source stream and default AppointmentIcsSaveOptions. More...
 
 CalendarWriter (System::String path, System::SharedPtr< AppointmentIcsSaveOptions > icsSaveOptions)
 Initializes a new instance of CalendarReader with source file and additional AppointmentIcsSaveOptions. More...
 
 CalendarWriter (System::SharedPtr< System::IO::Stream > stream, System::SharedPtr< AppointmentIcsSaveOptions > icsSaveOptions)
 Initializes a new instance of CalendarReader with source file and additional AppointmentIcsSaveOptions. More...
 
void Write (System::SharedPtr< Appointment > appointment)
 Writes appointment in underlying stream. More...
 
void Dispose () override
 Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. More...
 

Protected Member Functions

virtual void Dispose (bool disposing)
 Releases unmanaged and - optionally - managed resources. More...
 
virtual ~CalendarWriter ()
 

Detailed Description

Allows write the set of Events in one ics file or stream.

Constructor & Destructor Documentation

◆ CalendarWriter() [1/4]

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

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

Parameters
pathPath to source file.

◆ CalendarWriter() [2/4]

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

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

Parameters
streamSource stream.

◆ CalendarWriter() [3/4]

Aspose::Email::Calendar::CalendarWriter::CalendarWriter ( System::String  path,
System::SharedPtr< AppointmentIcsSaveOptions icsSaveOptions 
)

Initializes a new instance of CalendarReader with source file and additional AppointmentIcsSaveOptions.

Parameters
pathPath to source file.
icsSaveOptionsAdditional AppointmentIcsSaveOptions.

◆ CalendarWriter() [4/4]

Aspose::Email::Calendar::CalendarWriter::CalendarWriter ( System::SharedPtr< System::IO::Stream >  stream,
System::SharedPtr< AppointmentIcsSaveOptions icsSaveOptions 
)

Initializes a new instance of CalendarReader with source file and additional AppointmentIcsSaveOptions.

Parameters
streamSource stream.
icsSaveOptionsAdditional AppointmentIcsSaveOptions.

◆ ~CalendarWriter()

virtual Aspose::Email::Calendar::CalendarWriter::~CalendarWriter ( )
protectedvirtual

Member Function Documentation

◆ Dispose() [1/2]

void Aspose::Email::Calendar::CalendarWriter::Dispose ( )
override

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

◆ Dispose() [2/2]

virtual void Aspose::Email::Calendar::CalendarWriter::Dispose ( bool  disposing)
protectedvirtual

Releases unmanaged and - optionally - managed resources.

Parameters
disposingtrue to release both managed and unmanaged resources; false to release only unmanaged resources.

◆ Write()

void Aspose::Email::Calendar::CalendarWriter::Write ( System::SharedPtr< Appointment appointment)

Writes appointment in underlying stream.

Parameters
appointmentSource appointment