[Serializable] |
IPAddress myIP = IPAddress.Parse("192.168.1.2"); IPHostEntry myHost = Dns.GetHostByAddress(myIP);
ctor #1 | Initializes a new instance of the IPAddress class with the specified address. |
Any | Provides an IP address indicating that the server should listen for client activity on all network interfaces. This field is read-only. |
Broadcast | Provides the IP broadcast address. This field is read-only. |
Loopback | Provides the IP loopback address. This field is read-only. |
None | Provides an IP address indicating that no network interface should be used. This field is read-only. |
Address | Read-write An Internet Protocol (IP) address. |
AddressFamily | Read-only Specifies the address family of the IP address. |
Equals | Overridden: Compares two IP addresses. |
GetHashCode | Overridden: Returns a hash value for an IP address. |
GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
HostToNetworkOrder | Overloaded:HostToNetworkOrder(short host) Converts a short value from host byte order to network byte order. |
HostToNetworkOrder | Overloaded:HostToNetworkOrder(int host) Converts an integer value from host byte order to network byte order. |
HostToNetworkOrder | Overloaded:HostToNetworkOrder(long host) Converts a long value from host byte order to network byte order. |
IsLoopback | Indicates whether the specified IP address is the loopback address. |
NetworkToHostOrder | Overloaded:NetworkToHostOrder(short network) Converts a short value from network byte order to host byte order. |
NetworkToHostOrder | Overloaded:NetworkToHostOrder(int network) Converts an integer value from network byte order to host byte order. |
NetworkToHostOrder | Overloaded:NetworkToHostOrder(long network) Converts a long value from network byte order to host byte order. |
Parse | Converts an IP address string to an IPAddress instance. |
ToString | Overridden: Converts an Internet address to standard dotted-quad format. |
Finalize (inherited from System.Object) |
See base class member description: System.Object.Finalize Derived from System.Object, the primary base class for all objects. |
MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
Hierarchy:
public IPAddress( |
newAddress
public static readonly IPAddress Any;
|
The IPAddress.Any field is equivalent to 0.0.0.0.
public static readonly IPAddress Broadcast;
|
public static readonly IPAddress Loopback;
|
public static readonly IPAddress None;
|
public long Address {get; set;}
|
public AddressFamily AddressFamily {get;}
|
comparand
~IPAddress(); |
public override int GetHashCode(); |
public Type GetType(); |
host
The IPAddress.HostToNetworkOrder method converts multibyte integer values stored on the host system from the byte order used by the host to the byte order used by the network.
host
The IPAddress.HostToNetworkOrder method converts multibyte integer values stored on the host system from the byte order used by the host to the byte order used by the network.
host
The IPAddress.HostToNetworkOrder method converts multibyte integer values stored on the host system from the byte order used by the host to the byte order used by the network.
address
protected object MemberwiseClone(); |
network
The IPAddress.NetworkToHostOrder method converts multibyte integer values stored on the host system from the byte order used by the network to the byte order used by the host.
network
The IPAddress.NetworkToHostOrder method converts multibyte integer values stored on the host system from the byte order used by the network to the byte order used by the host.
network
The IPAddress.NetworkToHostOrder method converts multibyte integer values stored on the host system from the byte order used by the network to the byte order used by the host.
ipString
Exception Type | Condition |
---|---|
ArgumentNullException | ipString is null. |
FormatException | ipString is not a valid IP address. |
public override string ToString(); |