This documentation is archived and is not being maintained.

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)

public CollaborationSubscriptionState GetCurrentSubscriptionState(
	string uri


Type: System..::..String

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.


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

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