[英]SharePoint : are programmatic copy/move operations on folders and document sets guaranteed to be atomic?
Just wondering if programmatic operations in SharePoint that allow moving or copying folders (and their content) and document sets (and their content) are guaranteed to be atomic, so they fail or succeed as a whole ?只是想知道 SharePoint 中允许移动或复制文件夹(及其内容)和文档集(及其内容)的编程操作是否保证是原子的,因此它们作为一个整体失败或成功?
Examples of calls are SPFolder.Copy
, DocumentSet.Import
, SP.MoveCopyUtil
, CreateCopyJobs
, etc调用的示例是
SPFolder.Copy
、 DocumentSet.Import
、 SP.MoveCopyUtil
、 CreateCopyJobs
等
我认为是这样,他们应该是有气氛的,所以他们作为一个整体失败或成功。
检查了代码,例如文件夹的复制实际上是在循环中完成的,并带有一些清理逻辑,以防万一失败,这可能会导致自身失败而留下脏东西。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.