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.

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

public:
property SubscriptionType SubscribeAllowed {
	SubscriptionType get();
	void set(SubscriptionType value);
}

Property Value

Type: System.Net.PeerToPeer.Collaboration::SubscriptionType

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.

Exception Condition
ObjectDisposedException

This PeerContact

object has been disposed.

Setting this property to Allowedmeans 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.

.NET Framework
Available since 3.5
Return to top
Show: