RemotePresenceView.StartSubscribingToPresentities Method
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.
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 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.