Share via


RemotePresenceView.SetPresenceSubscriptionCategoriesForPolling Method

Sets the presence subscription categories for polling.

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

Syntax

'Declaration
Public Sub SetPresenceSubscriptionCategoriesForPolling ( _
    subscriptionCategories As IEnumerable(Of String) _
)
'Usage
Dim instance As RemotePresenceView
Dim subscriptionCategories As IEnumerable(Of String)

instance.SetPresenceSubscriptionCategoriesForPolling(subscriptionCategories)
public void SetPresenceSubscriptionCategoriesForPolling(
    IEnumerable<string> subscriptionCategories
)

Parameters

Exceptions

Exception Condition
InvalidOperationException

Thrown when this method is called when SubscriptionMode is not Polling or the view is already active.

ArgumentNullException

Thrown subscriptionCategories is null or contains a null member.

ArgumentException

Thrown when subscriptionCategories is an empty collection.

See Also

Reference

RemotePresenceView Class

RemotePresenceView Members

Microsoft.Rtc.Collaboration.Presence Namespace