Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- targets
Type: System.Collections.Generic.IEnumerable<RemotePresentitySubscriptionTarget>
Targets being subscribed to in this view.
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.