ContactSubscription Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for