开发者

How to get CreatedBy field for the SPListItem folder?

开发者 https://www.devze.com 2023-02-13 03:38 出处:网络
Is there any way you can get CreatedBy field for SPListItem Folder. I got CreatedDate using SPListitem.Folder.Properties but not able to get CreatedBy field.

Is there any way you can get CreatedBy field for SPListItem Folder. I got CreatedDate using SPListitem.Folder.Properties but not able to get CreatedBy field.

Thanks开发者_StackOverflow,

Ashish Chotalia


You can use SPListItem.Folder.Item["CreatedBy"].


One of answers that worked for me too:

SPFieldUserValue userValue = new SPFieldUserValue(web, item[SPBuiltInFieldId.Author].ToString());
SPUser author = userValue.User;
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号