IPAddress.Address 屬性

定義

警告

此 API 現已淘汰。

網際網路通訊協定 (IP) 位址。An Internet Protocol (IP) address.

public:
 property long Address { long get(); void set(long value); };
[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")]
[System.Obsolete("IPAddress.Address is address family dependant, use Equals method for comparison.")]
[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")]
[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; }
member this.Address : int64 with get, set
Public Property Address As Long

屬性值

IP 位址的長整數值。The long value of the IP address.

屬性

例外狀況

位址家族是 InterNetworkV6The address family is InterNetworkV6.

備註

這個屬性已經過時。This property is obsolete. 使用 GetAddressBytesUse GetAddressBytes.

若要將 Address 轉換為點符四標記法,請使用 ToString 方法。To convert Address to dotted-quad notation, use the ToString method.

適用於