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)
comparand
A <see cref="T:System.Net.DnsEndPoint" /> instance to compare to the current instance.
Returns <see langword="true" /> if the two <see cref="T:System.Net.DnsEndPoint" /> instances are equal; otherwise, <see langword="false" /> .
Compares two <see cref="T:System.Net.DnsEndPoint" /> objects.
public
int
GetHashCode​() Returns An integer hash value for the <see cref="T:System.Net.DnsEndPoint" /> .
Returns a hash value for a <see cref="T:System.Net.DnsEndPoint" /> .
public
string
ToString​() 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" /> .
Returns the host name or string representation of the IP address and port number of the <see cref="T:System.Net.DnsEndPoint" /> .
public
EndPoint
Create​(SocketAddress socketAddress)
Inherited from EndPoint
socketAddress
The socket address that serves as the endpoint for a connection.
Returns A new <see cref="T:System.Net.EndPoint" /> instance that is initialized from the specified <see cref="T:System.Net.SocketAddress" /> instance.
Creates an <see cref="T:System.Net.EndPoint" /> instance from a <see cref="T:System.Net.SocketAddress" /> instance.
public
SocketAddress
Serialize​()
Inherited from EndPoint
Returns A <see cref="T:System.Net.SocketAddress" /> instance that contains the endpoint information.
Serializes endpoint information into a <see cref="T:System.Net.SocketAddress" /> instance.
protected
void
Finalize​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object