PeerEndPoint 类

定义

表示 PeerNearMePeerContact 实例的位置,该位置由唯一网络地址配置通过描述对等协作基础结构中的 PeerContactPeerNearMe 的当前实例进行指定。

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
[<System.Serializable>]
type PeerEndPoint = class
    interface IDisposable
    interface IEquatable<PeerEndPoint>
    interface ISerializable
Public Class PeerEndPoint
Implements IDisposable, IEquatable(Of PeerEndPoint), ISerializable
继承
PeerEndPoint
属性
实现

注解

对等方 "终结点" 描述联系人的出席位置-唯一的网络地址配置,用于描述对等协作网络中联系人的当前可用实例。 可以在对等协作网络内的多个终结点上提供单个联系人。

监视联系人的对等端可以查询与该联系人关联的任何终结点,以获取特定的对等状态、应用程序或对象更新。

构造函数

PeerEndPoint()

生成 PeerEndPoint 类的一个新实例。

PeerEndPoint(IPEndPoint)

使用 PeerEndPoint 中包含的与对等方关联的终结点初始化 IPEndPoint 类的新实例。

PeerEndPoint(IPEndPoint, String)

使用 PeerEndPoint 中包含的与对等方关联的终结点以及一个指定 endPointName 的字符串初始化 IPEndPoint 类的新实例。

PeerEndPoint(SerializationInfo, StreamingContext)

使用序列化所需的关联参数初始化一个新的 PeerEndPoint 实例。

属性

EndPoint

获取或设置一个 IPEndPoint,其中包含与 PeerEndPoint 实例关联的 IP 地址。

Name

获取或设置一个 String,它表示 PeerEndPoint 实例的显示名称。

SynchronizingObject

设置此属性值后,将在创建特定 SynchronizingObject 的线程上为因异步操作而未激发的所有事件回调关联的事件处理程序。

方法

Dispose()

释放由 PeerEndPoint 对象使用的所有资源。

Dispose(Boolean)

释放由 PeerEndPoint 对象占用的非托管资源并(可选)释放托管资源。

Equals(Object)

PeerEndPoint 与指定的 Object 进行比较。

Equals(Object, Object)

确定指定的 PeerEndPoint 对象是否被视为相等。

Equals(PeerEndPoint)

PeerEndPoint 与指定的 PeerEndPoint 实例进行比较。

GetHashCode()

返回 PeerEndPoint 实例的哈希代码。

GetObjectData(SerializationInfo, StreamingContext)

使用序列化指定 SerializationInfo 实例所需的数据填充 PeerObject 类实例。 派生的类型必须调用基类型 GetObjectData(SerializationInfo, StreamingContext) 方法。

GetType()

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。

(继承自 Object)
OnNameChanged(NameChangedEventArgs)

在与 PeerContact 实例关联的 PeerEndPoint 所指定的 PeerName 发生更改时调用。

ToString()

返回表示 PeerEndPoint 实例的 String

事件

NameChanged

在与 PeerEndPoint 对象关联的名称更改时发出信号。

显式接口实现

ISerializable.GetObjectData(SerializationInfo, StreamingContext)

使用从已序列化的源中获取的数据填充当前的 PeerEndPoint 实例。

适用于

另请参阅