![](/img/trans.png)
[英]How do I get the ID of the current document in an Umbraco data editor?
[英]How do I get the current Editor of an Listitem while ItemUpdating?
在ItemUpdating期间如何在SharePoint 2010中获取列表项的当前编辑器?
问题是properties.AfterProperties["Editor"].ToString()
。AfterProperties properties.AfterProperties["Editor"].ToString()
引发并且Ecxeption导致它为null。 此properties.ListItem["Editor"].ToString()
无效,因为我得到了上次进行更改的Editor。
任何猜测我如何才能在更新过程中实现这一目标?
确定发现没有办法以这种方式获得它。
这对我有用: properties.UserDisplayName
检查字段的内部名称修改者
ListItem.ParentList.Fields [“修改人”]。 内部名称
可能是“ _Editor”或其他。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.