将文档保存在SharePoint的文档库中时会触发什么事件? [英] What event is triggered when a document is saved in a Document Library in SharePoint?

查看:48
本文介绍了将文档保存在SharePoint的文档库中时会触发什么事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个包含Excel工作表的文档列表,该列表中的文档必须进行处理.处理代码由EventReceiver触发.

We have a document list that contains Excel sheets, the documents that are in the list have to be processed. The processing code is triggered by the EventReceiver.

直到知道我们使用了ItemCheckedIn事件,但是当用户只是从Excel中保存文档时,才触发此事件.我试图使用ItemUpdated事件,但这似乎也不起作用.

Until know we used the ItemCheckedIn event, but this isn't triggered when the user just saves a document from within Excel. I have tried to use the ItemUpdated event, but that doesn't seem to work either.

所以我想知道当用户从Excel中保存文档时是否会触发一个事件.

So I'm wondering whether there is an event that is triggered when a user saves the document from within Excel.

推荐答案

在更新/添加列表项时,存在之前"和之后"事件.这是所有这些事件的完整列表:

There are Before and After events when updating/adding list items. Here is a comprehensive list of all of those events:

之前活动

  • ItemAdding
  • ItemUpdating
  • ItemDeleting

之后事件

  • ItemAdded
  • ItemUpdated
  • ItemDeleted
  • ItemAttachmentAdded
  • ItemAttachmentDeleted
  • ItemCheckedIn
  • ItemCheckedOut
  • ItemFileConverted
  • ItemFileMoved
  • ItemUncheckedOut
  • ItemAdded
  • ItemUpdated
  • ItemDeleted
  • ItemAttachmentAdded
  • ItemAttachmentDeleted
  • ItemCheckedIn
  • ItemCheckedOut
  • ItemFileConverted
  • ItemFileMoved
  • ItemUncheckedOut

这篇关于将文档保存在SharePoint的文档库中时会触发什么事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆