6 [global::__DynamicallyInvokable]
17 [global::__DynamicallyInvokable]
20 [global::__DynamicallyInvokable]
29 [global::__DynamicallyInvokable]
32 [global::__DynamicallyInvokable]
41 [global::__DynamicallyInvokable]
44 [global::__DynamicallyInvokable]
59 [global::__DynamicallyInvokable]
75 [global::__DynamicallyInvokable]
82 if (
string.IsNullOrEmpty(host))
86 if (port < 0 || port > 65535)
92 throw new ArgumentException(SR.GetString(
"net_sockets_invalid_optionValue_all"),
"addressFamily");
96 m_Family = addressFamily;
103 [global::__DynamicallyInvokable]
104 public override bool Equals(
object comparand)
107 if (dnsEndPoint ==
null)
111 if (m_Family == dnsEndPoint.m_Family && m_Port == dnsEndPoint.m_Port)
113 return m_Host == dnsEndPoint.m_Host;
120 [global::__DynamicallyInvokable]
128 [global::__DynamicallyInvokable]
131 return m_Family +
"/" + m_Host +
":" + m_Port;
The exception that is thrown when a null reference (Nothing in Visual Basic) is passed to a method th...
DnsEndPoint(string host, int port, AddressFamily addressFamily)
Initializes a new instance of the T:System.Net.DnsEndPoint class with the host name or string represe...
int Port
Gets the port number of the T:System.Net.DnsEndPoint.
int GetHashCode(object obj)
When overridden in a derived class, gets the hash code for the specified object.
override int GetHashCode()
Returns a hash value for a T:System.Net.DnsEndPoint.
override bool Equals(object comparand)
Compares two T:System.Net.DnsEndPoint objects.
The exception that is thrown when the value of an argument is outside the allowable range of values a...
override string ToString()
Returns the host name or string representation of the IP address and port number of the T:System....
Represents a network endpoint as a host name or a string representation of an IP address and a port n...
AddressFamily
Specifies the addressing scheme that an instance of the T:System.Net.Sockets.Socket class can use.
static StringComparer InvariantCultureIgnoreCase
Gets a T:System.StringComparer object that performs a case-insensitive string comparison using the wo...
The exception that is thrown when one of the arguments provided to a method is not valid.
DnsEndPoint(string host, int port)
Initializes a new instance of the T:System.Net.DnsEndPoint class with the host name or string represe...
Identifies a network address. This is an abstract class.
string Host
Gets the host name or string representation of the Internet Protocol (IP) address of the host.
Represents a string comparison operation that uses specific case and culture-based or ordinal compari...
The time represented is not specified as either local time or Coordinated Universal Time (UTC).