語言

PeerContact.SubscribeAllowed 屬性

定義

取得或設定一個值,指定是否PeerContact暴露於與擁有該物件所有權ContactManagerPeerContact的對等端或應用程式相關的協作事件。

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 是否暴露於屬於同儕主機或主機應用程式的協作事件。 除非明確指定,所有屬性的預設值都是 null 參考型別。

例外狀況

就是這樣 PeerContact

物品已被處理。

備註

將此屬性設為 表示Allowed由此PeerContact指定的遠端對等端可以看到擁有該ContactManager物件的使用者或應用程式PeerContact的註冊應用程式、物件及存在資訊。

此特性對 PeerContact 代表本地或「我」接觸的實例不影響,因為接觸總是訂閱自己。

適用於

另請參閱