public abstract class EndPoint
Object
EndPoint
System
Networking
This is the base class used to derive classes that represent network addresses.
[Note: The EndPoint class provides an abstract representation of the address of a network resource or service. ]
System.Net Namespace
EndPoint Constructors
EndPoint Methods
EndPoint Properties
protected EndPoint();
Constructs a new instance of the EndPoint class.
System.Net.EndPoint Class, System.Net Namespace
public virtual EndPoint Create(SocketAddress socketAddress);
Returns a new EndPoint instance containing the address information from the specified SocketAddress instance.
- socketAddress
- A SocketAddress instance that provides the address information for the new EndPoint instance.
A new EndPoint instance containing the address information from the specified SocketAddress instance.
Exception Type Condition NotSupportedException This method is required to be overridden in types derived from EndPoint .
[Behaviors: As described above.]
[Default: The default implementation throws NotSupportedException. ]
[Overrides: Override this method to return a EndPoint instance that contains the address information from the specified SocketAddress.]
[Usage: Use this method to obtain a EndPoint instance that represents the same network resource or service as the specified SocketAddress. ]
System.Net.EndPoint Class, System.Net Namespace
public virtual AddressFamily AddressFamily { get; }
Gets the address family to which the endpoint belongs.
One of the values defined in AddressFamily .
Exception Type Condition NotSupportedException This property is required to be overridden in types derived from EndPoint .
[Behaviors: This property is read-only.The AddressFamily value returned by this property specifies the addressing scheme used by the network protocol of the current instance.
]
[Default: The default implementation throws NotSupportedException. ]
[Overrides: Override this property to return the AddressFamily of the current instance.]
[Usage: Use this property to obtain the AddressFamily information of the current instance. ]
System.Net.EndPoint Class, System.Net Namespace