Share via


GetCurrentSubscriptionState Method

Return 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

Remarks

If PresenceDatasession is query oly then subscription state for all targets would always be either idle or terminated, because there is no underlying subscription dialog would be created for query.

Exceptions

[T:System.ArgumentNullException]: Thrown when the target parameter is null.

[T:System.ArgumentException]: Thrown when the target is not present in this RemotePresence subscriptions.

See Also

Reference

RemotePresence Class

RemotePresence Members

Microsoft.Rtc.Collaboration.Presence Namespace