| title | ms.custom | ms.date | ms.prod | ms.reviewer | ms.suite | ms.technology | ms.tgt_pltfrm | ms.topic | f1_keywords | dev_langs | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | manager | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
<ipv6> Element (Network Settings) |
03/30/2017 |
.net-framework |
|
article |
|
|
10b79aef-327b-4718-a892-e11f55e4d169 |
19 |
mcleblanc |
markl |
markl |
<ipv6> Element (Network Settings)
Enables Internet Protocol version 6 (IPv6) responses from obsolete members of the xref:System.Net.Dns class.
<configuration>
<system.net>
<settings>
<ipv6>
Syntax
<ipv6
enabled="true|false"
/ipv6> Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
| Attribute | Description |
|---|---|
enabled |
Specifies whether members of the xref:System.Net.Dns class return Internet Protocol version 6 (IPv6) addresses. The default value is false. |
Child Elements
None.
Parent Elements
| Element | Description |
|---|---|
| settings | Configures basic network options for the xref:System.Net namespace. |
Remarks
This setting enables IPv6 support for the obsolete members of the xref:System.Net.Dns class: xref:System.Net.Dns.BeginGetHostByName%2A, xref:System.Net.Dns.BeginResolve%2A, xref:System.Net.Dns.EndGetHostByName%2A, xref:System.Net.Dns.EndResolve%2A, xref:System.Net.Dns.GetHostByAddress%2A, xref:System.Net.Dns.GetHostByName%2A, and xref:System.Net.Dns.Resolve%2A. For other members of the xref:System.Net?displayProperty=nameWithType namespace, IPv6 addresses may be returned if IPv6 is enabled in the operating system.
Configuration Files
This element can be used in the application configuration file or the machine configuration file (Machine.config).
Example
The following example shows how to enable IPv6 support for the xref:System.Net.Dns class.
<configuration>
<system.net>
<settings>
<ipv6 enabled="true"/>
</settings>
</system.net>
</configuration> See Also
xref:System.Net?displayProperty=nameWithType
xref:System.Net.Dns?displayProperty=nameWithType
xref:System.Net.Sockets.Socket.OSSupportsIPv6%2A?displayProperty=nameWithType
Network Settings Schema