RemotePresenceView.StartSubscribingToPresentities Method

Start the operation to subscribe to the specified list of targets.

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

public void StartSubscribingToPresentities(
	IEnumerable<RemotePresentitySubscriptionTarget> targets
)

Parameters

targets
Type: System.Collections.Generic.IEnumerable<RemotePresentitySubscriptionTarget>
Targets being subscribed to in this view.

ExceptionCondition
InvalidOperationException

Thrown when the underlying endpoint is not established or when the view is no longer active.

ArgumentNullException

Thrown targets is null or contains a null member.

ArgumentException

Thrown when targets is an empty collection.

Use the SubscriptionStateChanged event to track whether a subscription is sucessful. Presence events can be obtained by wiring the PresenceNotificationReceived event handlers.

Show: