MapiAttachment.SaveAsync

SaveAsync(string, CancellationToken)

Save attachment content asynchronously.

public Task SaveAsync(string filename, CancellationToken token = default)
ParameterTypeDescription
filenameStringThe file name to save.
tokenCancellationTokenPropagates notification that operations should be canceled.

See Also


SaveAsync(Stream, CancellationToken)

Save attachment content asynchronously.

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

See Also