Sharepoint在itemUpdating中获取修改后的用户或用户组栏的值
生活随笔
收集整理的這篇文章主要介紹了
Sharepoint在itemUpdating中获取修改后的用户或用户组栏的值
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
獲取用戶或用戶組欄的值,在網上有不少的文章已經寫得非常好了(http://www.cnblogs.com/McJeremy/archive/2009/08/03/1537876.html)。但是我現在遇到一個問題就是:我在EventHandler的itemUpdating中需要獲取到更改后的用戶或用戶組的值,那我們知道,獲取更改后值是必須使用properties.afterproperties["Users"]。現在問題就出現了:通過一下代碼獲取的userValues始終等于null,SPFieldUserValueCollection userValues = properties.AfterProperties["Users"] as SPFieldUserValueCollection;
解決方法:SPFieldUserValueCollection userValues = new SPFieldUserValueCollection(web, properties.AfterProperties[fieldName] + "");
?
?
?
轉載于:https://www.cnblogs.com/xiaxianglanyu/p/3835082.html
總結
以上是生活随笔為你收集整理的Sharepoint在itemUpdating中获取修改后的用户或用户组栏的值的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: java轻量级Http Server
- 下一篇: SqlServer和MySQL中存储过程