PeerEndPoint PeerEndPoint PeerEndPoint PeerEndPoint Class

定义

表示 PeerNearMePeerContact 实例的位置,该位置由唯一网络地址配置通过描述对等协作基础结构中的 PeerContactPeerNearMe 的当前实例进行指定。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
[System.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
继承
PeerEndPointPeerEndPointPeerEndPointPeerEndPoint
属性
实现

注解

对等方 "终结点" 描述联系人的出席位置-唯一的网络地址配置, 用于描述对等协作网络中联系人的当前可用实例。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.

构造函数

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

生成 PeerEndPoint 类的一个新实例。Generates a new instance of the PeerEndPoint class.

PeerEndPoint(IPEndPoint) 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)

使用 PeerEndPoint 中包含的与对等方关联的终结点以及一个指定 endPointName 的字符串初始化 IPEndPoint 类的新实例。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)

使用序列化所需的关联参数初始化一个新的 PeerEndPoint 实例。Initializes a new PeerEndPoint instance with the associated parameters required for serialization.

属性

EndPoint EndPoint EndPoint EndPoint

获取或设置一个 IPEndPoint,其中包含与 PeerEndPoint 实例关联的 IP 地址。Gets or sets the IPEndPoint that contains the IP address associated with the PeerEndPoint instance.

Name Name Name Name

获取或设置一个 String,它表示 PeerEndPoint 实例的显示名称。Gets or sets a String that represents a displayed name for the PeerEndPoint instance.

SynchronizingObject 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.

方法

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

释放由 PeerEndPoint 对象使用的所有资源。Releases all resources used by the PeerEndPoint object.

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

释放由 PeerEndPoint 对象占用的非托管资源并(可选)释放托管资源。Releases the unmanaged resources used by the PeerEndPoint object and optionally releases the managed resources.

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

PeerEndPoint 与指定的 Object 进行比较。Compares the PeerEndPoint to the specified Object.

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

确定指定的 PeerEndPoint 对象是否被视为相等。Determines whether the specified PeerEndPoint objects are considered equal.

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

PeerEndPoint 与指定的 PeerEndPoint 实例进行比较。Compares the PeerEndPoint to the specified PeerEndPoint instance.

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

返回 PeerEndPoint 实例的哈希代码。Returns the hash code for a PeerEndPoint instance.

GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext) GetObjectData(SerializationInfo, StreamingContext)

使用序列化指定 SerializationInfo 实例所需的数据填充 PeerObject 类实例。Populates a SerializationInfo class instance with the data required to serialize the specified PeerObject instance. 派生的类型必须调用基类型 GetObjectData(SerializationInfo, StreamingContext) 方法。A derived type must call the base type GetObjectData(SerializationInfo, StreamingContext) method.

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

获取当前实例的 TypeGets the Type of the current instance.

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

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

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

在与 PeerContact 实例关联的 PeerEndPoint 所指定的 PeerName 发生更改时调用。Called when a change occurs to the PeerName specified by the PeerContact associated with the PeerEndPoint instance.

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

返回表示 PeerEndPoint 实例的 StringReturns a String that represents a PeerEndPoint instance.

事件

NameChanged NameChanged NameChanged NameChanged

在与 PeerEndPoint 对象关联的名称更改时发出信号。Signaled when the name associated with a PeerEndPoint object changes.

显式界面实现

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

使用从已序列化的源中获取的数据填充当前的 PeerEndPoint 实例。Populates the current PeerEndPoint instance with the data obtained from the serialized source.

适用于

另请参阅