EndPoint 类

定义

标识网络地址。Identifies a network address. 这是一个 abstract 类。This is an abstract class.

public ref class EndPoint abstract
[System.Serializable]
public abstract class EndPoint
type EndPoint = class
Public MustInherit Class EndPoint
继承
EndPoint
派生
属性

注解

类提供表示网络资源或服务的基类。abstract EndPointThe EndPoint class provides an abstract base class that represents a network resource or service. 子类组合网络连接信息以形成服务的连接点。Descendant classes combine network connection information to form a connection point to a service.

构造函数

EndPoint()

初始化 EndPoint 类的新实例。Initializes a new instance of the EndPoint class.

属性

AddressFamily

获取终结点所属的地址族。Gets the address family to which the endpoint belongs.

方法

Create(SocketAddress)

通过 SocketAddress 实例创建 EndPoint 实例。Creates an EndPoint instance from a SocketAddress instance.

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

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

(继承自 Object)
MemberwiseClone()

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

(继承自 Object)
Serialize()

将终结点信息序列化为 SocketAddress 实例。Serializes endpoint information into a SocketAddress instance.

ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于

另请参阅