Class EndPoint
Identifies a network address. This is an abstract class.
Inherited Members
Namespace: System.Net
Assembly: System.Net.dll
Syntax
public abstract class EndPoint
Remarks
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.
Constructors
EndPoint()
Declaration
protected EndPoint()
Methods
Create(SocketAddress)
Creates an EndPoint instance from a SocketAddress instance.
Declaration
public abstract EndPoint Create(SocketAddress socketAddress)
Parameters
Type | Name | Description |
---|---|---|
SocketAddress | socketAddress | The socket address that serves as the endpoint for a connection. |
Returns
Type | Description |
---|---|
EndPoint | A new EndPoint instance that is initialized from the specified SocketAddress instance. |
Serialize()
Serializes endpoint information into a SocketAddress instance.
Declaration
public abstract SocketAddress Serialize()
Returns
Type | Description |
---|---|
SocketAddress | A SocketAddress instance that contains the endpoint information. |