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
- uri
Type: System.String
The URI of the target.
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. |