IPAddress.Address Property

Definition

Caution

This property has been deprecated. It is address family dependent. Please use IPAddress.Equals method to perform comparisons. https://go.microsoft.com/fwlink/?linkid=14202

Caution

IPAddress.Address is address family dependent and has been deprecated. Use IPAddress.Equals to perform comparisons.

Caution

IPAddress.Address is address family dependent and has been deprecated. Use IPAddress.Equals to perform comparisons instead.

Caution

This property has been deprecated. It is address family dependent. Please use IPAddress.Equals method to perform comparisons. http://go.microsoft.com/fwlink/?linkid=14202

Caution

IPAddress.Address is address family dependant, use Equals method for comparison.

An Internet Protocol (IP) address.

C#
[System.Obsolete("This property has been deprecated. It is address family dependent. Please use IPAddress.Equals method to perform comparisons. https://go.microsoft.com/fwlink/?linkid=14202")]
public long Address { get; set; }
C#
[System.Obsolete("IPAddress.Address is address family dependent and has been deprecated. Use IPAddress.Equals to perform comparisons.")]
public long Address { get; set; }
C#
[System.Obsolete("IPAddress.Address is address family dependent and has been deprecated. Use IPAddress.Equals to perform comparisons instead.")]
public long Address { get; set; }
C#
[System.Obsolete("This property has been deprecated. It is address family dependent. Please use IPAddress.Equals method to perform comparisons. http://go.microsoft.com/fwlink/?linkid=14202")]
public long Address { get; set; }
C#
[System.Obsolete("IPAddress.Address is address family dependant, use Equals method for comparison.")]
public long Address { get; set; }

Property Value

The long value of the IP address.

Attributes

Exceptions

The address family is InterNetworkV6.

Remarks

This property is obsolete. Use GetAddressBytes.

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

Applies to

Product Versions (Obsolete)
.NET (Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9)
.NET Framework (1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1)
.NET Standard (2.0, 2.1)