PeerContact.SubscribeAllowed 屬性

定義

取得或設定值,指定 PeerContact 是否公開至與對等電腦或應用程式相關聯的共同作業事件,而這個對等電腦或應用程式具有 ContactManager 的擁有權,此 PeerContact 物件就在其中。

public:
 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

屬性值

SubscriptionType 列舉值,指定這個 PeerContact 是否公開至屬於對等主應用程式或裝載應用程式的共同作業事件。 除非明確指定,否則參考型別 (Reference Type) 的所有屬性預設值都是 null

例外狀況

這個 PeerContact

物件已經過處置。

備註

將此屬性設定為 Allowed 表示這個 PeerContact 所指定的遠端對等,可以看到擁有此PeerContact物件所在之 之 使用者或應用程式的ContactManager已註冊應用程式、物件和目前狀態資訊。

此屬性不會影響 PeerContact 代表本機或「Me」 聯繫人的實例,因為聯繫人一律訂閱本身。

適用於

另請參閱