Save(string, MapiCalendarSaveOptions)
Saves the calendar item to a file with the specified options.
public void Save(string filePath, MapiCalendarSaveOptions saveOptions)
Exceptions
| exception | condition |
|---|
| ArgumentException | filePath is null or empty. |
| NotSupportedException | The format of saveOptions is not supported. |
See Also
Save(Stream, MapiCalendarSaveOptions)
Saves the calendar item to a stream with the specified options.
public void Save(Stream stream, MapiCalendarSaveOptions saveOptions)
Exceptions
| exception | condition |
|---|
| ArgumentNullException | stream or saveOptions is null. |
| NotSupportedException | The format of saveOptions is not supported. |
| NotSupportedException | stream does not support writing. |
See Also
Save(string)
Saves the calendar item to an iCalendar (.ics) file with the default options.
public void Save(string filePath)
| Parameter | Type | Description |
|---|
| filePath | String | The path of the file to write. |
Exceptions
| exception | condition |
|---|
| ArgumentException | filePath is null or empty. |
See Also
Save(string, AppointmentSaveFormat)
Saves the calendar item to a file in the specified format with the default options.
public void Save(string filePath, AppointmentSaveFormat saveFormat)
| Parameter | Type | Description |
|---|
| filePath | String | The path of the file to write. |
| saveFormat | AppointmentSaveFormat | The format: ICS or MSG. |
Exceptions
| exception | condition |
|---|
| ArgumentException | filePath is null or empty. |
| NotSupportedException | saveFormat is not supported. |
See Also
Save(Stream)
Saves the calendar item to a stream in iCalendar format with the default options.
public void Save(Stream stream)
| Parameter | Type | Description |
|---|
| stream | Stream | The stream to write to. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | stream is null. |
| NotSupportedException | stream does not support writing. |
See Also
Save(Stream, AppointmentSaveFormat)
Saves the calendar item to a stream in the specified format with the default options.
public void Save(Stream stream, AppointmentSaveFormat saveFormat)
| Parameter | Type | Description |
|---|
| stream | Stream | The stream to write to. |
| saveFormat | AppointmentSaveFormat | The format: ICS or MSG. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | stream is null. |
| NotSupportedException | saveFormat is not supported. |
| NotSupportedException | stream does not support writing. |
See Also