System.Net.IPAddress.Address Property

An Internet Protocol (IP) address.

Syntax

[System.Obsolete("This property is obsolete. Use GetAddressBytes.")]
public long Address { get; set; }

Value

A long containing the IP address in host-byte-order.

Exceptions

TypeReason
ArgumentOutOfRangeExceptionThe value specified in a set operation is less than 0.

Remarks

This property is obsolete. Use IPAddress.GetAddressBytes.

To convert IPAddress.Address to dotted-quad notation, use the IPAddress.ToString method.

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0