SaveAttachment
内容
[
隐藏
]
SaveAttachment(Attachment, Stream, CancellationToken)
将附件文件保存到destination流.
public void SaveAttachment(Attachment attachment, Stream destination,
CancellationToken cancellationToken)
范围 | 类型 | 描述 |
---|---|---|
attachment | Attachment | 附件。 |
destination | Stream | 可写流。 |
cancellationToken | CancellationToken | 取消令牌。 |
例外
例外 | (健康)状况 |
---|---|
ArgumentNullException | 抛出时attachment一片空白。 |
ArgumentNullException | 抛出时destination一片空白。 |
PasswordRequiredException | 当打开文档需要密码时抛出。 |
IncorrectPasswordException | 当指定的密码不正确时抛出。 |
GroupDocsViewerException | 找不到附件时抛出。 |
评论
了解更多
- 了解有关在 C# 中获取文档附件的更多信息: 如何使用 GroupDocs.Viewer 获取文档附件列表
- 了解有关在 C# 中保存文档附件的更多信息: 如何使用 GroupDocs.Viewer 保存文档附件
也可以看看
- class Attachment
- class Viewer
- 命名空间 GroupDocs.Viewer
- 部件 GroupDocs.Viewer
SaveAttachment(Attachment, Stream)
将附件文件保存到destination流.
public void SaveAttachment(Attachment attachment, Stream destination)
范围 | 类型 | 描述 |
---|---|---|
attachment | Attachment | 附件。 |
destination | Stream | 可写流。 |
例外
例外 | (健康)状况 |
---|---|
ArgumentNullException | 抛出时attachment一片空白。 |
ArgumentNullException | 抛出时destination一片空白。 |
PasswordRequiredException | 当打开文档需要密码时抛出。 |
IncorrectPasswordException | 当指定的密码不正确时抛出。 |
GroupDocsViewerException | 找不到附件时抛出。 |
评论
了解更多
- 了解有关在 C# 中获取文档附件的更多信息: 如何使用 GroupDocs.Viewer 获取文档附件列表
- 了解有关在 C# 中保存文档附件的更多信息: 如何使用 GroupDocs.Viewer 保存文档附件
也可以看看
- class Attachment
- class Viewer
- 命名空间 GroupDocs.Viewer
- 部件 GroupDocs.Viewer