Edit

Share via


ContactSubscription Class

Definition

Specifies the type of contact information to be to be subscribed on a collection of contacts set in the subscription.

public ref class ContactSubscription : Microsoft::Lync::Model::Internal::UCWLite
public class ContactSubscription : Microsoft.Lync.Model.Internal.UCWLite
type ContactSubscription = class
    inherit UCWLite
Public Class ContactSubscription
Inherits UCWLite
Inheritance
ContactSubscription

Remarks

You must cache a ContactSubscription that you create to maintain subscriptions to contacts you get using the search feature, call into GetContactByUri, or other methods that return Contact instances that are not in the Lync client contact list. You continue to receive contact information updates for the contacts in the cached ContactSubscription until you either un-subscribe to the contacts or destroy the ContactSubscription. The ContactSubscription is cached as a class member.

Properties

Contacts

Returns the collection of contacts in a subscription.

InnerObject (Inherited from UCWBase)
LastSubscribedContactInformation

Returns the collection of contact information last subscribed in a subscription.

LastSubscribedRefreshRate

Returns the subscription freshness.

Methods

AddContact(Contact)

Adds a contact to a subscription.

AddContacts(IEnumerable<Contact>)

Adds a collection of contacts to a subscription.

RemoveContact(Contact)

Removes a contact from a subscription.

Subscribe(ContactSubscriptionRefreshRate, IEnumerable<ContactInformationType>)

if a contact is removed from the subscription, the subscription to this contact can only be removed when Unsubscribe or UpdateSubscription is called.

Unsubscribe()

Unsubscribes a subscription.

Applies to