SPListItem生命周期

时间:2012-09-05 08:07:02

标签: sharepoint lifecycle splistitem

我想对列表项生命周期有一些帮助。我能读到的任何链接吗?

我需要知道的主要事情是在事件接收器中有以下方法:

  1. ItemAdding
  2. ItemAdded
  3. ItemUpdating
  4. ItemUpdated
  5. 工作流程何时开始?如何停止更新进程并使用systemupdate更新某些字段并且不会触发任何错误? 我需要的是更新一些没有新版本且没有工作流程的字段。

1 个答案:

答案 0 :(得分:0)

你应该可以使用(在你的事件接收者中):

base.EventFiringEnabled = false;
//Do some changes to the list item
item.SystemUpdate();
base.EventFiringEnabled = true;

该主题还讨论了这个http://social.msdn.microsoft.com/forums/en-US/sharepointdevelopment/thread/46e0a519-c580-46e3-92b7-c40765ed0e52