SaveAsync(string, MapiCalendarSaveOptions, CancellationToken)
Saves calendar to the file with specified save options asynchronously.
public Task SaveAsync(string filePath, MapiCalendarSaveOptions saveOptions,
CancellationToken token = default)
| Parameter | Type | Description |
|---|
| filePath | String | A file path |
| saveOptions | MapiCalendarSaveOptions | A save options |
| token | CancellationToken | Propagates notification that operations should be canceled. |
Exceptions
| exception | condition |
|---|
| ArgumentException | filePath is null or empty |
| NotSupportedException | the specified save options are not supported |
See Also
SaveAsync(Stream, MapiCalendarSaveOptions, CancellationToken)
Saves calendar to the stream with specified save options asynchronously.
public Task SaveAsync(Stream stream, MapiCalendarSaveOptions saveOptions,
CancellationToken token = default)
| Parameter | Type | Description |
|---|
| stream | Stream | A stream to save to |
| saveOptions | MapiCalendarSaveOptions | A save options |
| token | CancellationToken | Propagates notification that operations should be canceled. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | saveOptions or stream is null |
| NotSupportedException | the specified save options are not supported |
| NotSupportedException | stream does not support writing |
See Also
SaveAsync(string, CancellationToken)
Saves calendar object to the file with iCalendar format using the default save options asynchronously.
public Task SaveAsync(string filePath, CancellationToken token = default)
| Parameter | Type | Description |
|---|
| filePath | String | A file path |
| token | CancellationToken | Propagates notification that operations should be canceled. |
Exceptions
| exception | condition |
|---|
| ArgumentException | filePath is null or empty |
See Also
SaveAsync(string, AppointmentSaveFormat, CancellationToken)
Saves calendar object to the file with specified format using the default save options asynchronously.
public Task SaveAsync(string filePath, AppointmentSaveFormat saveFormat,
CancellationToken token = default)
| Parameter | Type | Description |
|---|
| filePath | String | A file path |
| saveFormat | AppointmentSaveFormat | A save format |
| token | CancellationToken | Propagates notification that operations should be canceled. |
Exceptions
| exception | condition |
|---|
| ArgumentException | filePath is null or empty |
| NotSupportedException | The specified saveFormat is not supported |
See Also
SaveAsync(Stream, CancellationToken)
Saves calendar object to the file with iCalendar format using the default save options asynchronously.
public Task SaveAsync(Stream stream, CancellationToken token = default)
| Parameter | Type | Description |
|---|
| stream | Stream | A stream to save to |
| token | CancellationToken | Propagates notification that operations should be canceled. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | stream is null |
| NotSupportedException | stream does not support writing |
See Also
SaveAsync(Stream, AppointmentSaveFormat, CancellationToken)
Saves calendar object to the stream with specified format using the default save options asynchronously.
public Task SaveAsync(Stream stream, AppointmentSaveFormat saveFormat,
CancellationToken token = default)
| Parameter | Type | Description |
|---|
| stream | Stream | A stream to save to |
| saveFormat | AppointmentSaveFormat | A save format |
| token | CancellationToken | Propagates notification that operations should be canceled. |
Exceptions
| exception | condition |
|---|
| ArgumentNullException | stream is null |
| NotSupportedException | The specified saveFormat is not supported |
| NotSupportedException | stream does not support writing |
See Also