PeerContact.SubscribeAllowed Property


Gets or sets a value that specifies whether the PeerContact is exposed to the collaboration events associated with the peer or application that has ownership of the ContactManager in which this PeerContact object resides.

 property System::Net::PeerToPeer::Collaboration::SubscriptionType SubscribeAllowed { System::Net::PeerToPeer::Collaboration::SubscriptionType get(); void set(System::Net::PeerToPeer::Collaboration::SubscriptionType value); };
public System.Net.PeerToPeer.Collaboration.SubscriptionType SubscribeAllowed { get; set; }
member this.SubscribeAllowed : System.Net.PeerToPeer.Collaboration.SubscriptionType with get, set
Public Property SubscribeAllowed As SubscriptionType

Property Value


SubscriptionType enumeration value that specifies whether this PeerContact is exposed to collaboration events belonging to the peer host or hosting application. Unless explicitly specified, the default value for all properties is null for reference types.


This PeerContact

object has been disposed.


Setting this property to Allowed means the remote peer specified by this PeerContact can see the registered applications, objects and presence information for the user or application that owns the ContactManager in which this PeerContact object resides.

This property has no effect on a PeerContact instance that represents the local or "Me" contact, since a contact is always subscribed to itself.

Applies to

See also