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

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

Inherits IDisposable.

Public Member Functions

ASPOSE_EMAIL_SHARED_API CalendarWriter (System::String path)
 Initializes a new instance of CalendarReader with source file and default IcsSaveOptions. More...
 
ASPOSE_EMAIL_SHARED_API CalendarWriter (System::SharedPtr< System::IO::Stream > stream)
 Initializes a new instance of CalendarReader with source stream and default IcsSaveOptions. More...
 
ASPOSE_EMAIL_SHARED_API CalendarWriter (System::String path, System::SharedPtr< IcsSaveOptions > icsSaveOptions)
 Initializes a new instance of CalendarReader with source file and additional IcsSaveOptions. More...
 
ASPOSE_EMAIL_SHARED_API CalendarWriter (System::SharedPtr< System::IO::Stream > stream, System::SharedPtr< IcsSaveOptions > icsSaveOptions)
 Initializes a new instance of CalendarReader with source file and additional IcsSaveOptions. More...
 
ASPOSE_EMAIL_SHARED_API void Write (System::SharedPtr< Appointment > appointment)
 Writes appointment in underlying stream. More...
 
ASPOSE_EMAIL_SHARED_API void Dispose ()
 Releases all resources used by the CalendarWriter object. More...
 

Detailed Description

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

Constructor & Destructor Documentation

◆ CalendarWriter() [1/4]

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

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

Parameters
pathPath to source file.

◆ CalendarWriter() [2/4]

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

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

Parameters
streamSource stream.

◆ CalendarWriter() [3/4]

ASPOSE_EMAIL_SHARED_API Aspose::Email::Calendar::CalendarWriter::CalendarWriter ( System::String  path,
System::SharedPtr< IcsSaveOptions >  icsSaveOptions 
)

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

Parameters
pathPath to source file.
icsSaveOptionsAdditional IcsSaveOptions.

◆ CalendarWriter() [4/4]

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

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

Parameters
streamSource stream.
icsSaveOptionsAdditional IcsSaveOptions.

Member Function Documentation

◆ Dispose()

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

Releases all resources used by the CalendarWriter object.

◆ Write()

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

Writes appointment in underlying stream.

Parameters
appointmentSource appointment