SaveAttachment

SaveAttachment(Attachment, Stream, CancellationToken)

Saves attachment file to destination stream.

public void SaveAttachment(Attachment attachment, Stream destination, 
    CancellationToken cancellationToken)
Parameter Type Description
attachment Attachment The attachment.
destination Stream The writable stream.
cancellationToken CancellationToken Cancellation token.

Exceptions

exception condition
ArgumentNullException Thrown when attachment is null.
ArgumentNullException Thrown when destination is null.
PasswordRequiredException Thrown when password is required to open the document.
IncorrectPasswordException Thrown when password that was specified is incorrect.
GroupDocsViewerException Thrown when attachment could not be found.

Remarks

Learn more

See Also


SaveAttachment(Attachment, Stream)

Saves attachment file to destination stream.

public void SaveAttachment(Attachment attachment, Stream destination)
Parameter Type Description
attachment Attachment The attachment.
destination Stream The writable stream.

Exceptions

exception condition
ArgumentNullException Thrown when attachment is null.
ArgumentNullException Thrown when destination is null.
PasswordRequiredException Thrown when password is required to open the document.
IncorrectPasswordException Thrown when password that was specified is incorrect.
GroupDocsViewerException Thrown when attachment could not be found.

Remarks

Learn more

See Also