Edit

Share via


RemotePresenceView.StartSubscribingToPresentities Method

Definition

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

public:
 void StartSubscribingToPresentities(System::Collections::Generic::IEnumerable<Microsoft::Rtc::Collaboration::Presence::RemotePresentitySubscriptionTarget ^> ^ targets);
public void StartSubscribingToPresentities (System.Collections.Generic.IEnumerable<Microsoft.Rtc.Collaboration.Presence.RemotePresentitySubscriptionTarget> targets);
member this.StartSubscribingToPresentities : seq<Microsoft.Rtc.Collaboration.Presence.RemotePresentitySubscriptionTarget> -> unit
Public Sub StartSubscribingToPresentities (targets As IEnumerable(Of RemotePresentitySubscriptionTarget))

Parameters

targets
IEnumerable<RemotePresentitySubscriptionTarget>

Targets being subscribed to in this view.

Exceptions

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

Thrown targets is null or contains a null member.

Thrown when targets is an empty collection.

Remarks

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

Applies to