← Interactive API Explorer
Namespace: System.Net

EndPoint

Identifies a network address. This is an abstract class.

Properties (1)

AddressFamily AddressFamily
Gets the address family to which the endpoint belongs.
Value: One of the AddressFamily values.

Methods (2)

SocketAddress Serialize
Serializes endpoint information into a SocketAddress instance.
Returns: A SocketAddress instance that contains the endpoint information.
EndPoint Create(Net.SocketAddress)
Creates an EndPoint instance from a SocketAddress instance.
ParameterDescription
socketAddressThe socket address that serves as the endpoint for a connection.
Returns: A new EndPoint instance that is initialized from the specified SocketAddress instance.