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
[<System.Serializable>] 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.
No public constructor is defined for this class.
Gets or sets the X509Certificate (public key) for the peer identified by this PeerContact instance.
Gets or sets a string which represents the display name of the PeerContact.
Gets or sets the email address associated with the PeerContact.
Gets a value specifying if the Peer is currently 'online'.(Inherited from Peer)
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.
Gets or sets a string which represents the
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.
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)
Releases all resources used by the Peer object.(Inherited from Peer)
Releases the unmanaged resources and optionally releases the managed resources used by the PeerApplication object.
Compares the PeerContact instance to the specified object.
Determines whether the specified PeerContact instances are considered equal.
Performs a case-sensitive comparison of the current Peer and the specified peer.(Inherited from Peer)
Creates a PeerContact instance based on provided XML data.
Retrieves the PeerApplication objects that were registered by the remote peer into the local cache.
Returns the hash code for a PeerContact instance.
Gets the collection of data objects from a local cache.(Inherited from Peer)
Gets the available presence information for a PeerEndPoint.(Inherited from Peer)
Gets the Type of the current instance.(Inherited from Object)
Sends an invitation to join into peer collaboration sponsored by the sender.
|Invite(PeerApplication, String, Byte)||
Sends the specified invitation to join into the specified PeerApplication sponsored by the sender.
Sends an invitation to a specific endpoint to join into peer collaboration with the sender of the invitation.
|Invite(PeerEndPoint, PeerApplication, String, Byte)|
|InviteAsync(PeerApplication, String, Byte, Object)||
Begins an asynchronous invitation operation for the specified peer endpoints to join the specified collaboration PeerApplication sponsored by the sender of the invitation.
Begins an asynchronous invitation operation for the specified peer endpoint to join a PeerCollaboration application sponsored by the sender of the invitation. The invitation is identified using the specified Object.
|InviteAsync(PeerEndPoint, String, Byte, PeerApplication, Object)||
Begins an asynchronous invitation operation for the specified
Cancels the invitation that was sent with the InviteAsync(PeerApplication, String, Byte, Object) method.(Inherited from Peer)
Creates a shallow copy of the current Object.(Inherited from Object)
Raises the ApplicationChanged event.
Raises the InviteCompleted event.(Inherited from Peer)
Raises the SubscribeCompleted event.
Serializes the PeerContact to an XML string for persistent storage or network transfer.
This event is raised whenever an application associated with the PeerContact has changed.
Raised when the invitation process for a remote peer has completed.(Inherited from Peer)
This event is raised whenever the PeerContact has changed its presence status.
Raised when a subscription operation has completed.
Explicit Interface Implementations