Compartilhar via


<ipv6> Element (Network Settings)

Enables Internet Protocol version 6 (IPv6) responses from obsolete members of the Dns class.

<ipv6
  enabled="true|false"
/>

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description

enabled

Specifies whether members of the Dns class return Internet Protocol version 6 (IPv6) addresses.

Child Elements

None.

Parent Elements

Element Description

settings

Configures basic network options for the System.Net namespace.

Remarks

This setting enables IPv6 support for the obsolete members of the Dns class: BeginGetHostByName, BeginResolve, EndGetHostByName, EndResolve, GetHostByAddress, GetHostByName, and Resolve. For other members of the System.Net 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 code example shows how to enable IPv6 support for the Dns class.

<configuration>
  <system.net>
    <settings>
      <ipv6 enabled="true"/>
    </settings>
  </system.net>
</configuration>

See Also

Reference

Network Settings Schema
System.Net
Dns
OSSupportsIPv6