EndPoint EndPoint EndPoint EndPoint Class

定义

标识网络地址。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
继承
EndPointEndPointEndPointEndPoint
派生
属性

注解

EndPoint类提供了abstract基类,表示网络资源或服务。The 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() EndPoint() EndPoint()

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

属性

AddressFamily AddressFamily AddressFamily AddressFamily

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

方法

Create(SocketAddress) Create(SocketAddress) Create(SocketAddress) Create(SocketAddress)

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

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

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

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

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

(Inherited from Object)
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)
Serialize() Serialize() Serialize() Serialize()

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

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

返回表示当前对象的字符串。Returns a string that represents the current object.

(Inherited from Object)

适用于

另请参阅