sharepoint user field
时间:2011-03-16 来源:icedog
SPFieldUser userField = (SPFieldUser)site.Lists["Gifts"].Fields.GetField(“Recipient Name”);
SPFieldUserValue fieldValue = (SPFieldUserValue)userField.GetFieldValue(item["Recipient Name"].ToString());
string username = fieldValue.LookupValue;
strint uid = filedValue.LookupId;
SPUser user = fieldValue.User;
===========================================================================================================
SPFieldUser UsersColumn = (SPFieldUser)currentItem.Fields.GetField(“Users”);
SPFieldUserValueCollection Users = (SPFieldUserValueCollection)UsersColumn.GetFieldValue(currentItem["Users"].ToString());
相关阅读 更多 +