Peer Class
This class represents a remote peer.
System.Net.PeerToPeer.Collaboration::Peer
System.Net.PeerToPeer.Collaboration::PeerContact
System.Net.PeerToPeer.Collaboration::PeerNearMe
Assembly: System.Net (in System.Net.dll)
The Peer type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | IsOnline | Gets a value specifying if the Peer is currently 'online'. |
![]() | PeerEndPoints | Gets the PeerEndPointCollection associated with the Peer. |
![]() | 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. |
| Name | Description | |
|---|---|---|
![]() | Dispose() | Releases all resources used by the Peer object. |
![]() | Dispose(Boolean) | Releases the unmanaged resources used by the Peer object and optionally releases the managed resources. |
![]() | Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) |
![]() | Equals(Peer) | Performs a case-sensitive comparison of the current Peer and the specified peer. |
![]() | Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetObjectData | Populates a SerializationInfo object with the data needed to serialize the target Peer. |
![]() | GetObjects() | Gets the collection of data objects from a local cache. |
![]() | GetObjects(Guid) | Gets the Peer object associated with the supplied Guid from the PeerObjectCollection. |
![]() | GetPresenceInfo | Gets the available presence information for a PeerEndPoint. |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Invite() | Sends an invitation to a Peer to start a specific PeerApplication. |
![]() | Invite(PeerApplication, String, array<Byte>) | Sends an invitation to a Peer to start a specific PeerApplication. |
![]() | InviteAsync(Object) | Begins an asynchronous invitation operation which sends an invitation to a Peer to start a specific PeerApplication. |
![]() | InviteAsync(PeerApplication, String, array<Byte>, Object) | Begins an asynchronous invitation operation which sends an invitation to a Peer to start a specific PeerApplication. |
![]() | InviteAsyncCancel | Cancels the invitation that was sent with the InviteAsync method. |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | OnInviteCompleted | Raises the InviteCompleted event. |
![]() | ToString | Returns a String representing the PeerName associated with the Peer. (Overrides Object::ToString().) |
| Name | Description | |
|---|---|---|
![]() | InviteCompleted | Raised when the invitation process for a remote peer has completed. |
| Name | Description | |
|---|---|---|
![]() ![]() | ISerializable::GetObjectData | Populates a SerializationInfo class instance with the data required to serialize the specified PeerObject instance. A derived type must call the base type GetObjectData method. |
The purpose of the abstract Peer class is to provide a common base class definition that can be shared by derived classes such as PeerNearMe and PeerContact. It cannot be directly constructed, since it is abstract. Developers should use the subclasses PeerNearMe or PeerContact instead.
Contact, peer, remote peer, PeerNearMe, LocalContact, and PeerContact are synonymous terms, based on context.
"Calling peer" and "remote peer" are commonly synonymous. Calling peer does not refer to the application calling a given method.
Windows 7, Windows Vista SP1 or later, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
