PeerEndPoint PeerEndPoint PeerEndPoint PeerEndPoint Class

Definition

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.

public ref class PeerEndPoint : IDisposable, IEquatable<System::Net::PeerToPeer::Collaboration::PeerEndPoint ^>, System::Runtime::Serialization::ISerializable
[Serializable]
public class PeerEndPoint : IDisposable, IEquatable<System.Net.PeerToPeer.Collaboration.PeerEndPoint>, System.Runtime.Serialization.ISerializable
type PeerEndPoint = class
    interface IDisposable
    interface IEquatable<PeerEndPoint>
    interface ISerializable
Public Class PeerEndPoint
Implements IDisposable, IEquatable(Of PeerEndPoint), ISerializable
Inheritance
PeerEndPointPeerEndPointPeerEndPointPeerEndPoint
Attributes
SerializableAttribute
Implements

Remarks

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.

Constructors

PeerEndPoint() PeerEndPoint() PeerEndPoint() PeerEndPoint()

Generates a new instance of the PeerEndPoint class.

PeerEndPoint(IPEndPoint) PeerEndPoint(IPEndPoint) PeerEndPoint(IPEndPoint) PeerEndPoint(IPEndPoint)

Initializes a new instance of the PeerEndPoint class with the peer-associated endpoint contained in IPEndPoint.

PeerEndPoint(IPEndPoint, String) PeerEndPoint(IPEndPoint, String) PeerEndPoint(IPEndPoint, String) PeerEndPoint(IPEndPoint, String)

Initializes a new instance of the PeerEndPoint class with the peer-associated endpoint contained in IPEndPoint and a string specifying endPointName.

PeerEndPoint(SerializationInfo, StreamingContext) PeerEndPoint(SerializationInfo, StreamingContext) PeerEndPoint(SerializationInfo, StreamingContext) PeerEndPoint(SerializationInfo, StreamingContext)

Initializes a new PeerEndPoint instance with the associated parameters required for serialization.

Properties

EndPoint EndPoint EndPoint EndPoint

Gets or sets the IPEndPoint that contains the IP address associated with the PeerEndPoint instance.

Name Name Name Name

Gets or sets a String that represents a displayed name for the PeerEndPoint instance.

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.

Methods

Dispose() Dispose() Dispose() Dispose()

Releases all resources used by the PeerEndPoint object.

Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Compares the PeerEndPoint to the specified Object.

Equals(Object, Object) Equals(Object, Object) Equals(Object, Object) Equals(Object, Object)

Determines whether the specified PeerEndPoint objects are considered equal.

Equals(PeerEndPoint) Equals(PeerEndPoint) Equals(PeerEndPoint) Equals(PeerEndPoint)

Compares the PeerEndPoint to the specified PeerEndPoint instance.

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Returns the hash code for a PeerEndPoint instance.

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) 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(SerializationInfo, StreamingContext) method.

GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
OnNameChanged(NameChangedEventArgs) OnNameChanged(NameChangedEventArgs) OnNameChanged(NameChangedEventArgs) OnNameChanged(NameChangedEventArgs)

Called when a change occurs to the PeerName specified by the PeerContact associated with the PeerEndPoint instance.

ToString() ToString() ToString() ToString()

Returns a String that represents a PeerEndPoint instance.

Events

NameChanged NameChanged NameChanged NameChanged

Signaled when the name associated with a PeerEndPoint object changes.

Explicit Interface Implementations

ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext) ISerializable.GetObjectData(SerializationInfo, StreamingContext)

Populates the current PeerEndPoint instance with the data obtained from the serialized source.

Applies to

See Also