MapiTask.SaveAsync

SaveAsync(Stream, TaskSaveFormat, CancellationToken)

Saves this MapiTask to the given stream using specified format asynchronously. The supported save format is MSG.

public Task SaveAsync(Stream stream, TaskSaveFormat saveFormat, CancellationToken token = default)
ParameterTypeDescription
streamStreamA stream to save to.
saveFormatTaskSaveFormatA save format.
tokenCancellationTokenPropagates notification that operations should be canceled.

Exceptions

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

See Also


SaveAsync(string, TaskSaveFormat, CancellationToken)

Saves this MapiTask into file using specified format asynchronously. The supported save format is MSG.

public Task SaveAsync(string filePath, TaskSaveFormat saveFormat, CancellationToken token = default)
ParameterTypeDescription
filePathStringA file name.
saveFormatTaskSaveFormatA save format.
tokenCancellationTokenPropagates notification that operations should be canceled.

Exceptions

exceptioncondition
ArgumentExceptionfilePath is null or empty.
NotSupportedExceptionsome save option is not supported

See Also


SaveAsync(Stream, CancellationToken)

Saves this MapiTask to the given stream asynchronously. The supported save format is MSG.

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

Exceptions

exceptioncondition
ArgumentNullExceptionstream is null.
NotSupportedExceptionstream does not support writing.

See Also


SaveAsync(string, CancellationToken)

Saves this MapiTask into file asynchronously. The supported save format is MSG.

public Task SaveAsync(string filePath, CancellationToken token = default)
ParameterTypeDescription
filePathStringA file name.
tokenCancellationTokenPropagates notification that operations should be canceled.

Exceptions

exceptioncondition
ArgumentExceptionfilePath is null or empty.

See Also