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 找不到附件时抛出。

评论

了解更多

也可以看看


SaveAttachment(Attachment, Stream)

将附件文件保存到destination流.

public void SaveAttachment(Attachment attachment, Stream destination)
范围 类型 描述
attachment Attachment 附件。
destination Stream 可写流。

例外

例外 (健康)状况
ArgumentNullException 抛出时attachment一片空白。
ArgumentNullException 抛出时destination一片空白。
PasswordRequiredException 当打开文档需要密码时抛出。
IncorrectPasswordException 当指定的密码不正确时抛出。
GroupDocsViewerException 找不到附件时抛出。

评论

了解更多

也可以看看