Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Net.​DnsEndPoint
Assembly: System.Net.Primitives
Inheritance: object → EndPoint → DnsEndPoint
Represents a network endpoint as a host name or a string representation of an IP address and a port number.
Properties
public
AddressFamily
AddressFamily
Gets the Internet Protocol (IP) address family.
public
string
Host
Gets the host name or string representation of the Internet Protocol (IP) address of the host.
public
int
Port
Gets the port number of the <see cref="T:System.Net.DnsEndPoint" /> .
Methods
public
bool
Equals​(object comparand)
Compares two <see cref="T:System.Net.DnsEndPoint" /> objects.
Returns <see langword="true" /> if the two <see cref="T:System.Net.DnsEndPoint" /> instances are equal; otherwise, <see langword="false" /> .
comparand
A <see cref="T:System.Net.DnsEndPoint" /> instance to compare to the current instance.
public
int
GetHashCode​()
Returns a hash value for a <see cref="T:System.Net.DnsEndPoint" /> .
Returns An integer hash value for the <see cref="T:System.Net.DnsEndPoint" /> .
public
string
ToString​()
Returns the host name or string representation of the IP address and port number of the <see cref="T:System.Net.DnsEndPoint" /> .
Returns A string containing the address family, host name or IP address string, and the port number of the specified <see cref="T:System.Net.DnsEndPoint" /> .
public
EndPoint
Create​(SocketAddress socketAddress)
Inherited from EndPoint
Creates an <see cref="T:System.Net.EndPoint" /> instance from a <see cref="T:System.Net.SocketAddress" /> instance.
Returns A new <see cref="T:System.Net.EndPoint" /> instance that is initialized from the specified <see cref="T:System.Net.SocketAddress" /> instance.
socketAddress
The socket address that serves as the endpoint for a connection.
public
SocketAddress
Serialize​()
Inherited from EndPoint
Serializes endpoint information into a <see cref="T:System.Net.SocketAddress" /> instance.
Returns A <see cref="T:System.Net.SocketAddress" /> instance that contains the endpoint information.
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object