Is XMLDocument.Save an atomic operation?

后端 未结 4 920
傲寒
傲寒 2021-01-12 08:58

Is there anyway another process monitoring for files created using XMLDocument.Save() could encounter a partial file? Does it make any difference if Save() is overwriting an

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-12 09:36

    I don't think that there is any guarantee of atomicity. You should not depend on it.

提交回复
热议问题