GetAttachments
Contents
 [
        
            Hide
        ]
    GetAttachments()
Returns attachments contained by the document.
public IList<Attachment> GetAttachments()
Return Value
Attachments contained by the document.
Exceptions
| exception | condition | 
|---|---|
| PasswordRequiredException | Thrown when password is required to open the document. | 
| IncorrectPasswordException | Thrown when password that was specified is incorrect. | 
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
 
GetAttachments(CancellationToken)
Returns attachments contained by the document.
public IList<Attachment> GetAttachments(CancellationToken cancellationToken)
| Parameter | Type | Description | 
|---|---|---|
| cancellationToken | CancellationToken | Cancellation token. | 
Return Value
Attachments contained by the document.
Exceptions
| exception | condition | 
|---|---|
| PasswordRequiredException | Thrown when password is required to open the document. | 
| IncorrectPasswordException | Thrown when password that was specified is incorrect. | 
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