Export (0) Print
Expand All

<ipv6> Element (Network Settings)

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

<configuration> Element
  <system.net> Element (Network Settings)
    <settings> Element (Network Settings)
      <ipv6> Element (Network Settings)
<ipv6
  enabled="true|false"
/ipv6>

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. The default value is false.

Child Elements

None.

Parent Elements

Element

Description

<settings>

Configures basic network options for the System.Net namespace.

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).

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>

Community Additions

ADD
Show:
© 2014 Microsoft