EndPoint 类
定义
标识网络地址。Identifies a network address. 这是一个 abstract 类。This is an abstract class.
public ref class EndPoint abstract
public abstract class EndPoint
[System.Serializable]
public abstract class EndPoint
type EndPoint = class
[<System.Serializable>]
type EndPoint = class
Public MustInherit Class EndPoint
- 继承
-
EndPoint
- 派生
- 属性
注解
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 类的新实例。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() |
获取当前实例的 Type。Gets 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() |
返回表示当前对象的字符串。Returns a string that represents the current object. (继承自 Object) |