Peer Class

 

This class represents a remote peer.

Namespace:   System.Net.PeerToPeer.Collaboration
Assembly:  System.Net (in System.Net.dll)


[SerializableAttribute]
public abstract class Peer : IDisposable, IEquatable<Peer>, ISerializable

NameDescription
System_CAPS_protmethodPeer(SerializationInfo, StreamingContext)

Initializes a new instance of the Peer type.

NameDescription
System_CAPS_pubpropertyIsOnline

Gets a value specifying if the Peer is currently 'online'.

System_CAPS_pubpropertyPeerEndPoints

Gets the PeerEndPointCollection associated with the Peer.

System_CAPS_pubpropertySynchronizingObject

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.

NameDescription
System_CAPS_pubmethodDispose()

Releases all resources used by the Peer object.

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the Peer object and optionally releases the managed resources.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodEquals(Peer)

Performs a case-sensitive comparison of the current Peer and the specified peer.

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_protmethodGetObjectData(SerializationInfo, StreamingContext)

Populates a SerializationInfo object with the data needed to serialize the target Peer.

System_CAPS_pubmethodGetObjects()

Gets the collection of data objects from a local cache.

System_CAPS_pubmethodGetObjects(Guid)

Gets the Peer object associated with the supplied Guid from the PeerObjectCollection.

System_CAPS_pubmethodGetPresenceInfo(PeerEndPoint)

Gets the available presence information for a PeerEndPoint.

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInvite()

Sends an invitation to a Peer to start a specific PeerApplication.

System_CAPS_pubmethodInvite(PeerApplication, String, Byte[])

Sends an invitation to a Peer to start a specific PeerApplication.

System_CAPS_pubmethodInviteAsync(Object)

Begins an asynchronous invitation operation which sends an invitation to a Peer to start a specific PeerApplication.

System_CAPS_pubmethodInviteAsync(PeerApplication, String, Byte[], Object)

Begins an asynchronous invitation operation which sends an invitation to a Peer to start a specific PeerApplication.

System_CAPS_pubmethodInviteAsyncCancel(Object)

Cancels the invitation that was sent with the InviteAsync method.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodOnInviteCompleted(InviteCompletedEventArgs)

Raises the InviteCompleted event.

System_CAPS_pubmethodToString()

Returns a String representing the PeerName associated with the Peer.(Overrides Object.ToString().)

NameDescription
System_CAPS_pubeventInviteCompleted

Raised when the invitation process for a remote peer has completed.

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodISerializable.GetObjectData(SerializationInfo, StreamingContext)

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.

.NET Framework
Available since 3.5

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: