person or group value into a collection
SPFieldUser userField = (SPFieldUser)item.Fields.GetField("Team");
userFieldValueCollection = (SPFieldUserValueCollection)userField.GetFieldValue(item["Team"].ToString());
foreach (SPFieldUserValue user in userFieldValueCollection)
{
do your stuff here
}
userFieldValueCollection = (SPFieldUserValueCollection)userField.GetFieldValue(item["Team"].ToString());
foreach (SPFieldUserValue user in userFieldValueCollection)
{
do your stuff here
}
Comments