MapiDistributionList.SaveAsync

SaveAsync(string, MapiDistributionListSaveOptions, CancellationToken)

Saves the specified file name asynchronously.

public Task SaveAsync(string fileName, MapiDistributionListSaveOptions options, 
    CancellationToken token = default)
ParameterTypeDescription
fileNameStringName of the file.
optionsMapiDistributionListSaveOptionsAdditional options for saving DistributionList.
tokenCancellationTokenPropagates notification that operations should be canceled.

Exceptions

exceptioncondition
InvalidOperationExceptionThrown if DistributionList is empty.
NotSupportedExceptionThrown 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)
ParameterTypeDescription
streamStreamThe stream.
optionsMapiDistributionListSaveOptionsAdditional options for saving DistributionList.
tokenCancellationTokenPropagates notification that operations should be canceled.

Exceptions

exceptioncondition
InvalidOperationExceptionThrown if DistributionList is empty.
NotSupportedExceptionThrown 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)
ParameterTypeDescription
fileNameStringName of the file.
tokenCancellationTokenPropagates notification that operations should be canceled.

See Also


SaveAsync(Stream, CancellationToken)

Saves the specified stream asynchronously.

public Task SaveAsync(Stream stream, CancellationToken token = default)
ParameterTypeDescription
streamStreamThe stream.
tokenCancellationTokenPropagates notification that operations should be canceled.

See Also