PeerContact.IsSubscribed Property

Gets or sets a value specifying whether the current PeerContact is subscribed or unsubscribed to an endpoint. Alternatively, this property gets or sets a value specifying whether the current peer host or hosting application has subscribed or unsubscribed to this PeerContact.

Namespace:  System.Net.PeerToPeer.Collaboration
Assembly:  System.Net (in System.Net.dll)

public bool IsSubscribed { get; internal set; }

Property Value

Type: System.Boolean
True if this PeerContact is subscribed to this endpoint, false if the contact has not subscribed or has unsubscribed.

ExceptionCondition
ObjectDisposedException

This PeerContact object has been disposed.

In many instances, a PeerEndPoint is not the same as a peer host. A peer host has an instance within the ContactManager of the remote peer, and the relationship is that they have invited the peer to collaborate. An endpoint has a "Me" instance within its own contact manager and the peer host, but the relationship is not specified.

If the peer host is in the ContactManager, and the peer contact chooses not to Subscribe, its SubscriptionType can have a value of blocked, rather than deleting its entry from the host Contact Manager.

There is a many-to-many relationship between local peers, remote peers, peer hosts, and subscriptions. Subscriptions are per user, rather than per process, per application, or per domain. Consequently, the subscriptions associated with a PeerContact object are the list of contacts to which it has subscribed and from which it expects updates. Those contacts either have updated their own application, object, and presence information, or they have updated information regarding contacts in the ContactManager.

This property always returns true if the object is a PeerContact which represents the local or "Me" contact, since a contact is always subscribed to itself.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft