Pages

Wednesday, 7 January 2015

Check current user in SPFieldUser collection

SPFieldUserValueCollection usercoll= new SPFieldUserValueCollection(oweb, item["usercoll"].ToString());
bool containuser=likedBy.Find(u => u.User.LoginName.ToString().Contains(SPContext.Current.Web.CurrentUser.LoginName))!= null ? true : false;

No comments:

Post a Comment