在ItemUpdating中如何获得Listitem的当前编辑器?

时间:2013-01-16 13:34:53

标签: c# sharepoint sharepoint-2010 event-handling synchronous

如何在ItemUpdating期间获取SharePoint 2010中列表项的当前编辑器?

问题是properties.AfterProperties["Editor"].ToString()抛出,Ecxeption导致它为空。这个properties.ListItem["Editor"].ToString()没用,因为我得到了最后一次更改的编辑器。

有什么猜测我在更新期间如何实现这个目标?

2 个答案:

答案 0 :(得分:1)

好的发现没有办法这样做。

这对我有用:properties.UserDisplayName

答案 1 :(得分:0)

检查修改者字段

的内部名称

ListItem.ParentList.Fields [“Modified By”]。 INTERNALNAME

可能是“_Editor”或者其他。

相关问题