SaveAttachment
Contents
[
Hide
]
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
- Learn more about getting document attachments in C#: How to get list of document attachments using GroupDocs.Viewer
- Learn more about saving document attachments in C#: How to save document attachments using GroupDocs.Viewer
See Also
- class Attachment
- class Viewer
- namespace GroupDocs.Viewer
- assembly GroupDocs.Viewer
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
- Learn more about getting document attachments in C#: How to get list of document attachments using GroupDocs.Viewer
- Learn more about saving document attachments in C#: How to save document attachments using GroupDocs.Viewer
See Also
- class Attachment
- class Viewer
- namespace GroupDocs.Viewer
- assembly GroupDocs.Viewer