PeerContact.SubscribeAllowed 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得或設定一個值,指定是否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 參考型別。
例外狀況
備註
將此屬性設為 表示Allowed由此PeerContact指定的遠端對等端可以看到擁有該ContactManager物件的使用者或應用程式PeerContact的註冊應用程式、物件及存在資訊。
此特性對 PeerContact 代表本地或「我」接觸的實例不影響,因為接觸總是訂閱自己。