zoukankan      html  css  js  c++  java
  • SharePoint : The difference and relation between SPListItem.Update and SPListItem.SystemUpdate Methods 【转载】

    http://www.nanmu.net/keli/blog/Lists/Posts/Post.aspx?ID=93

        You may have used SPListItem.Update() method in sharepoint development, but you may don't know about SPListItem.SystemUpdate() method. Now we talk about the difference and relation about them.

        First, let's see the SDK's description:

    • SPListItem.Update(), Updates the database with changes that are made to the list item.

    • SPListItem.SystemUpdate(),Updates the database with changes made to the list item, without effecting changes in the Modified or Modified By fields.

    • SPListItem.SystemUpdate(bool incrementListItemVersion),Updates the database with changes that are made to the list item, without effecting changes in the Modified Time or Modified By fields, or optionally, the item version.

        Now we can see, the same appointment is they are save the item changes to database. But, the Update method will effectint the modified time and Modified By Fields, the systemupdate method will not.

    这是一个不怎么起眼的技术细节,SPListItem.SystemUpdate会保存更改,但不会保存更改时间,以及修改人。

  • 相关阅读:
    XML-SAX
    aio-epoll
    aio-java
    设计模式-策略模式、命令模式
    java-io一
    计算机网络-tcp的可靠性
    计算机网络-tcp简介
    设计模式-单例模式、工厂模式
    Cookie和Session简述
    mysql-优化二
  • 原文地址:https://www.cnblogs.com/chenxizhang/p/1598521.html
Copyright © 2011-2022 走看看