This documentation is archived and is not being maintained.

Move a Contact to Another Contact Group

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Moving a contact from one contact group to another amounts to removing the contact from the first group and adding it to a second group.

To move the contact from group to group, write code to the following pattern:

Multiple Group Membership

The IUccContact interface property Groups is of the IUccCollection type and can contain multiple IUccGroup objects. This means that a single contact can be a member of multiple groups.

A contact can be added to a group with a call into the AddToGroup method on the IUccContact interface. Calling AddContact on the IUccGroup interface accomplishes the same thing. If you call the AddToGroup method, you must publish the contact to persist your change. Calling AddContact requires that you publish the group to persist your change.