This documentation is archived and is not being maintained.

PeerEndPoint Class

Represents the location of a PeerNearMe, or PeerContact instance specified with a unique network address configuration by describing the current instance of a PeerContact or PeerNearMe within the Peer-to-Peer Collaboration Infrastructure.


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

public class PeerEndPoint : IDisposable, 
	IEquatable<PeerEndPoint>, ISerializable

The PeerEndPoint type exposes the following members.

Public methodPeerEndPoint()Generates a new instance of the PeerEndPoint class.
Public methodPeerEndPoint(IPEndPoint)Initializes a new instance of the PeerEndPoint class with the peer-associated endpoint contained in IPEndPoint.
Public methodPeerEndPoint(IPEndPoint, String)Initializes a new instance of the PeerEndPoint class with the peer-associated endpoint contained in IPEndPoint and a string specifying endPointName.
Protected methodPeerEndPoint(SerializationInfo, StreamingContext)Initializes a new PeerEndPoint instance with the associated parameters required for serialization.

Public propertyEndPointGets or sets the IPEndPoint that contains the IP address associated with the PeerEndPoint instance.
Public propertyNameGets or sets a String that represents a displayed name for the PeerEndPoint instance.
Public propertySynchronizingObjectWhen 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.

Public methodDispose()Releases all resources used by the PeerEndPoint object.
Protected methodDispose(Boolean)Releases the unmanaged resources used by the PeerEndPoint object and optionally releases the managed resources.
Public methodEquals(Object)Compares the PeerEndPoint to the specified Object. (Overrides Object.Equals(Object).)
Public methodEquals(PeerEndPoint)Compares the PeerEndPoint to the specified PeerEndPoint instance.
Public methodStatic memberEquals(Object, Object)Determines whether the specified PeerEndPoint objects are considered equal.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeReturns the hash code for a PeerEndPoint instance. (Overrides Object.GetHashCode().)
Protected methodGetObjectDataPopulates a SerializationInfo class instance with the data required to serialize the specified PeerObject instance. A derived type must call the base type GetObjectData method.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOnNameChangedCalled when a change occurs to the PeerName specified by the PeerContact associated with the PeerEndPoint instance.
Public methodToStringReturns a String that represents a PeerEndPoint instance. (Overrides Object.ToString().)

Public eventNameChangedSignaled when the name associated with a PeerEndPoint object changes.

Explicit interface implemetationPrivate methodISerializable.GetObjectDataPopulates the current PeerEndPoint instance with the data obtained from the serialized source.

A peer "endpoint" describes a contact's presence location — the unique network address configuration that describes the currently available instance of the contact within the peer collaboration network. A single contact can be available at multiple endpoints within the peer collaboration network.

A peer watching a contact can query any of the endpoints associated with that contact for specific peer presence, application, or object updates.

.NET Framework

Supported in: 4, 3.5

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

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.

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