IPAddress.Address Property
Note: This API is now obsolete. The non-obsolete alternative is GetAddressBytes().
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets or sets an Internet Protocol (IP) address for IPv4.
Assembly: System.Net (in System.Net.dll)
| Exception | Condition |
|---|---|
| SocketException | The AddressFamily property is InterNetworkV6. |
This property is obsolete. Use GetAddressBytes to get the IP address as an array of bytes.
The Address property is assumed to be in network byte order.
This property can only be used to get or set an IPv4 address, since the size of the long data type is not large enough for an IPv6 address.
To convert Address to dotted-decimal notation, use the ToString method.