Share via


RemotePresence.GetCurrentSubscriptionState Method

Gets the current subscription state for a given target.

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

Syntax

'Declaration
Public Function GetCurrentSubscriptionState ( _
    uri As String _
) As CollaborationSubscriptionState
'Usage
Dim instance As RemotePresence
Dim uri As String
Dim returnValue As CollaborationSubscriptionState

returnValue = instance.GetCurrentSubscriptionState(uri)
public CollaborationSubscriptionState GetCurrentSubscriptionState(
    string uri
)

Parameters

Return Value

Type: Microsoft.Rtc.Collaboration.Presence.CollaborationSubscriptionState
CollaborationSubscriptionState of the requested target.

Exceptions

Exception Condition
ArgumentNullException

Thrown when uri is null.

ArgumentException

Thrown when uri has not been subscribed to.

See Also

Reference

RemotePresence Class

RemotePresence Members

Microsoft.Rtc.Collaboration.Presence Namespace