MapiCalendar.Save

Save(string, MapiCalendarSaveOptions)

Saves calendar object to the file with specified format using te default save options

public void Save(string filePath, MapiCalendarSaveOptions saveOptions)
ParameterTypeDescription
filePathStringA file path
saveOptionsMapiCalendarSaveOptionsA save options

Exceptions

exceptioncondition
ArgumentExceptionfilePath is null or empty
NotSupportedExceptionthe specified save options are not supported

See Also


Save(Stream, MapiCalendarSaveOptions)

Saves calendar to the stream with specified save options

public void Save(Stream stream, MapiCalendarSaveOptions saveOptions)
ParameterTypeDescription
streamStreamA stream to save to
saveOptionsMapiCalendarSaveOptionsA save options

Exceptions

exceptioncondition
ArgumentNullExceptionsaveOptions or stream is null
NotSupportedExceptionthe specified save options are not supported
NotSupportedExceptionstream does not support writing

See Also


Save(string)

Saves calendar object to the file with iCalendar format using te default save options

public void Save(string filePath)
ParameterTypeDescription
filePathStringA file path

Exceptions

exceptioncondition
ArgumentExceptionfilePath is null or empty

See Also


Save(string, AppointmentSaveFormat)

Saves calendar object to the file with specified format using te default save options

public void Save(string filePath, AppointmentSaveFormat saveFormat)
ParameterTypeDescription
filePathStringA file path
saveFormatAppointmentSaveFormatA save format

Exceptions

exceptioncondition
ArgumentExceptionfilePath is null or empty
NotSupportedExceptionThe specified saveFormat is not supported

See Also


Save(Stream)

Saves calendar object to the file with iCalendar format using te default save options

public void Save(Stream stream)
ParameterTypeDescription
streamStreamA stream to save to

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null
NotSupportedExceptionstream does not support writing

See Also


Save(Stream, AppointmentSaveFormat)

Saves calendar object to the stream with specified format using te default save options

public void Save(Stream stream, AppointmentSaveFormat saveFormat)
ParameterTypeDescription
streamStreamA stream to save to
saveFormatAppointmentSaveFormatA save format

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null
NotSupportedExceptionThe specified saveFormat is not supported
NotSupportedExceptionstream does not support writing

See Also