Share via


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)

Syntax

'Declaration
Public Sub StartSubscribingToPresentities ( _
    targets As IEnumerable(Of RemotePresentitySubscriptionTarget) _
)
'Usage
Dim instance As RemotePresenceView
Dim targets As IEnumerable(Of RemotePresentitySubscriptionTarget)

instance.StartSubscribingToPresentities(targets)
public void StartSubscribingToPresentities(
    IEnumerable<RemotePresentitySubscriptionTarget> targets
)

Parameters

Exceptions

Exception Condition
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.

Remarks

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

See Also

Reference

RemotePresenceView Class

RemotePresenceView Members

Microsoft.Rtc.Collaboration.Presence Namespace