Represents a peer for which a user has retrieved extended information.
public ref class PeerContact : System::Net::PeerToPeer::Collaboration::Peer, IEquatable<System::Net::PeerToPeer::Collaboration::PeerContact ^>, System::Runtime::Serialization::ISerializable
[System.Serializable] public class PeerContact : System.Net.PeerToPeer.Collaboration.Peer, IEquatable<System.Net.PeerToPeer.Collaboration.PeerContact>, System.Runtime.Serialization.ISerializable
type PeerContact = class inherit Peer interface IEquatable<PeerContact> interface ISerializable
Public Class PeerContact Inherits Peer Implements IEquatable(Of PeerContact), ISerializable
A contact represents a trusted peer. A PeerContact object must be created for a remote peer or PeerNearMe for a user to collaborate with the remote peer when it is outside of the "People Near Me" scope. A PeerContact object can exist as either an application running on a remote computer, or the user of a remote computer. An instance of this class can be added to the ContactManager which stores the contact information in a persistent manner.
An application invitation from a PeerContact is both authenticated and encrypted. The UI dialog to accept or reject an invitation from a peer contact also indicates that the inviter is trusted.
Subscribing to a PeerContact object means a remote peer can see its registered applications, objects and presence information. To subscribe to a PeerContact, the caller must be signed in to the peer collaboration infrastructure via SignIn or signed in via the Windows UI. All other operations do not require sign-in.
|PeerContact(SerializationInfo, StreamingContext) PeerContact(SerializationInfo, StreamingContext) PeerContact(SerializationInfo, StreamingContext) PeerContact(SerializationInfo, StreamingContext)||
No public constructor is defined for this class.
|Credentials Credentials Credentials Credentials||
Gets or sets the X509Certificate (public key) for the peer identified by this PeerContact instance.
|DisplayName DisplayName DisplayName DisplayName||
Gets or sets a string which represents the display name of the PeerContact.
|EmailAddress EmailAddress EmailAddress EmailAddress||
Gets or sets the email address associated with the PeerContact.
|IsOnline IsOnline IsOnline IsOnline||
Gets a value specifying if the Peer is currently 'online'.(Inherited from Peer)
|IsSubscribed IsSubscribed IsSubscribed IsSubscribed||
Gets or sets a value specifying whether the current PeerContact is subscribed or unsubscribed to an endpoint. Alternatively, this property gets or sets a value specifying whether the current peer host or hosting application has subscribed or unsubscribed to this PeerContact.
|Nickname Nickname Nickname Nickname||
Gets or sets a string which represents the
|PeerEndPoints PeerEndPoints PeerEndPoints PeerEndPoints|
|PeerName PeerName PeerName PeerName|
|SubscribeAllowed SubscribeAllowed SubscribeAllowed SubscribeAllowed||
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.
|SynchronizingObject SynchronizingObject SynchronizingObject SynchronizingObject||
When this property value is set, all events not fired as the result of an asynchronous operation will have the associated event handlers called back on the thread that created the specific SynchronizingObject.(Inherited from Peer)
|ApplicationChanged ApplicationChanged ApplicationChanged ApplicationChanged||
This event is raised whenever an application associated with the PeerContact has changed.
|InviteCompleted InviteCompleted InviteCompleted InviteCompleted||
Raised when the invitation process for a remote peer has completed.(Inherited from Peer)
|ObjectChanged ObjectChanged ObjectChanged ObjectChanged|
|PresenceChanged PresenceChanged PresenceChanged PresenceChanged||
This event is raised whenever the PeerContact has changed its presence status.
|SubscribeCompleted SubscribeCompleted SubscribeCompleted SubscribeCompleted||
Raised when a subscription operation has completed.