A contact is another user registered on a SIP server such as Microsoft Lync Server 2010. A Contact class instance exposes member methods, properties, and events that provide real-time availability and presence for a remote user. In addition, the Contact class gives you the ability to assign access levels and delegate privileges in addition to get the presence of the contact.

Classes Obtained from Contact

The following figure illustrates the types you get from Contact .

Adding and Removing Contacts

Users can search for contacts and add contacts to their contact list by adding them to a custom group. Contacts are added to a custom group by calling the BeginAddContact method.

Contacts can also be removed from a custom group and a distribution group. To remove a contact from a group, call the BeginRemoveContact method. For more information about adding and removing a contact in a group, including examples, see Walkthrough: Add and Remove Contacts in a Group .

Retrieving Contact Properties and Presence Items

A contact's URI is a public property. In addition, the Settings property returns a collection of settings such as the access level and the default endpoint for a contact.

Other items related to a contact, such as a name and the availability level, are presence items. A contact's presence item is available only if the contact has published the presence item and only if the user has subscribed to the contact's presence items. Presence item types for a contact include:

  • Name

  • Company

  • E-mail addresses

  • Instant messaging addresses

  • Availability

  • Capabilities

  • Working hours

  • Photo

See Also