WordprocessingDocument

WordprocessingDocument

本文介绍了WordprocessingDocument是否与WordprocessingDocument.Open(WordprocessingDocument.Package)相等(或引用相等)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

WordporcessingDocument wordDoc1 = WordporcessingDocument.Create(package,packageType);
WordporcessingDocument wordDoc2 = WordporcessingDocument.Open(wordDoc1.package,packageType,false);

它们是否相等或者引用是否等于什么?


请注意.Create()方法不提供禁用自动保存功能的参数,因此wordDoc1将等于wordDoc2(其自动保存功能被禁用)?

解决方案

WordporcessingDocument wordDoc1 = WordporcessingDocument.Create(package, packageType);
WordporcessingDocument wordDoc2 = WordporcessingDocument.Open(wordDoc1.package, packageType,false);

are they equal or referenceEqual or not at all?


please note that .Create() method doesn't provide a parameter to disable the autosave feature, so will wordDoc1 be equal to wordDoc2(whose autosave feature is disabled)?

解决方案


这篇关于WordprocessingDocument是否与WordprocessingDocument.Open(WordprocessingDocument.Package)相等(或引用相等)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-18 22:39