Beispiel #1
0
        private void OnMultiUserValueChanged(object sender, string fieldName)
        {
            SPFieldUserValueCollection collection = new SPFieldUserValueCollection();

            foreach (SPPrincipal user in (IEnumerable)sender)
            {
                collection.Add(new SPFieldUserValue(user.ParentWeb, user.ID, user.Name));
            }
            this[fieldName] = collection.ToString();
        }
Beispiel #2
0
 public override string ToString()
 {
     return(m_fieldUserValueCollection.ToString());
 }