SaveAsync(string, MapiDistributionListSaveOptions, CancellationToken)
Saves the specified file name asynchronously.
public Task SaveAsync(string fileName, MapiDistributionListSaveOptions options,
CancellationToken token = default)
| Parameter | Type | Description |
|---|
| fileName | String | Name of the file. |
| options | MapiDistributionListSaveOptions | Additional options for saving DistributionList. |
| token | CancellationToken | Propagates notification that operations should be canceled. |
Exceptions
| exception | condition |
|---|
| InvalidOperationException | Thrown if DistributionList is empty. |
| NotSupportedException | Thrown if the DistributionList is saved in WebDav |
See Also
SaveAsync(Stream, MapiDistributionListSaveOptions, CancellationToken)
Saves the specified stream asynchronously.
public Task SaveAsync(Stream stream, MapiDistributionListSaveOptions options,
CancellationToken token = default)
| Parameter | Type | Description |
|---|
| stream | Stream | The stream. |
| options | MapiDistributionListSaveOptions | Additional options for saving DistributionList. |
| token | CancellationToken | Propagates notification that operations should be canceled. |
Exceptions
| exception | condition |
|---|
| InvalidOperationException | Thrown if DistributionList is empty. |
| NotSupportedException | Thrown if the DistributionList is saved in WebDav |
See Also
SaveAsync(string, CancellationToken)
Saves the specified file name asynchronously.
public Task SaveAsync(string fileName, CancellationToken token = default)
| Parameter | Type | Description |
|---|
| fileName | String | Name of the file. |
| token | CancellationToken | Propagates notification that operations should be canceled. |
See Also
SaveAsync(Stream, CancellationToken)
Saves the specified stream asynchronously.
public Task SaveAsync(Stream stream, CancellationToken token = default)
| Parameter | Type | Description |
|---|
| stream | Stream | The stream. |
| token | CancellationToken | Propagates notification that operations should be canceled. |
See Also