ContactGroupServices class contains services to add, delete or update the contacts and groups of the session's owner.

Namespace:  Microsoft.Rtc.Collaboration.ContactsGroups
Assembly:  Microsoft.Rtc.Collaboration(in Microsoft.Rtc.Collaboration.dll)

Syntax

Visual Basic (Declaration)
Public 
Class 
ContactGroupServices _
	
Inherits 

PublishSubscribeSession
C#
public 
class 
ContactGroupServices : 

PublishSubscribeSession
Visual C++
public 
ref class 
ContactGroupServices : 
public 

PublishSubscribeSession
JavaScript

Microsoft.Rtc.Collaboration.ContactsGroups.ContactGroupServices
= 
function();

Type.createClass(
	 
'Microsoft.Rtc.Collaboration.ContactsGroups.ContactGroupServices',
	

Microsoft.Rtc.Collaboration.Presence.PublishSubscribeSession);

Remarks

Contacts are unified communication entities identifiable by SIP URIs that can be assembled into logical collections called groups. A Groupis identified by a group ID which is a server assigned integer. A Contactcan belong to zero or more groups. Adding someone to the contact list does not automatically indicate that their presence information is subscribed to. The application must separately use the RemotePresenceclass to subscribe to these contacts. Groups do not hold references to their contained contacts.

This feature is available only to the UserEndpointclass and not to an ApplicationEndpoint.

These contacts and groups are cached locally when BeginSubscribe(AsyncCallback, Object)is invoked and are cleared if they have not been accessed for longer than five minutes. Subsequent usage of the class causes the cache to be populated again.

The allowed operations are adding, deleting, and updating of contact and group properties. When a group is deleted, the group is automatically removed from all contacts belonging to that group.

Inheritance Hierarchy

Object
   Microsoft.Rtc.Collaboration.Presence . . :: . PublishSubscribeSession
     Microsoft.Rtc.Collaboration.ContactsGroups . . :: . ContactGroupServices

See Also