开发者

How to get CreatedBy field for the SPListItem folder?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜