IPAddress.IsIPv4MappedToIPv6 屬性

定義

取得 IP 位址是否為對應 IPv4 的 IPv6 位址。Gets whether the IP address is an IPv4-mapped IPv6 address.

public:
 property bool IsIPv4MappedToIPv6 { bool get(); };
public bool IsIPv4MappedToIPv6 { get; }
member this.IsIPv4MappedToIPv6 : bool
Public ReadOnly Property IsIPv4MappedToIPv6 As Boolean

屬性值

傳回 BooleanReturns Boolean.

如果 IP 位址是對應 IPv4 的 IPv6 位址,則為 true,否則為 falsetrue if the IP address is an IPv4-mapped IPv6 address; otherwise, false.

備註

雙堆疊通訊端一律需要 IPv6 位址。Dual-stack sockets always require IPv6 addresses. 與 IPv4 位址互動的能力需要使用 IPv4 對應的 IPv6 位址格式。The ability to interact with an IPv4 address requires the use of the IPv4-mapped IPv6 address format. 任何 IPv4 位址都必須以 IPv4 對應的 IPv6 位址格式表示,讓 IPv6 唯一的應用程式可以與 IPv4 節點進行通訊。Any IPv4 addresses must be represented in the IPv4-mapped IPv6 address format which enables an IPv6 only application to communicate with an IPv4 node. IPv4 對應的 IPv6 位址格式允許 IPv4 節點的 IPv4 位址以 IPv6 位址表示。The IPv4-mapped IPv6 address format allows the IPv4 address of an IPv4 node to be represented as an IPv6 address. IPv4 位址會編碼成 IPv6 位址的低序位32位,而高序位96位會保留固定的前置詞0:0:0:0:0: FFFF。The IPv4 address is encoded into the low-order 32 bits of the IPv6 address, and the high-order 96 bits hold the fixed prefix 0:0:0:0:0:FFFF. IPv4 對應的 IPv6 位址格式是在 RFC 4291 中指定。The IPv4-mapped IPv6 address format is specified in RFC 4291. 如需詳細資訊,請參閱www.ietf.org/rfc/rfc4291.txtFor more information, see www.ietf.org/rfc/rfc4291.txt.

適用於