<uri> Element (Uri Settings)
Contains settings that specify how the .NET Framework handles web addresses expressed using uniform resource identifiers (URIs).
Schema Hierarchy
Syntax
<uri>
</uri>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
None.
Child Elements
Element |
Description |
---|---|
Specifies if Internationalized Domain Name (IDN) parsing is applied to domain names. |
|
Specifies if International Resource Identifier (IRI) parsing is applied to Uri and whether IRI parsing rules should be applied. |
Parent Elements
Element |
Description |
---|---|
Contains settings for all namespaces. |
Remarks
The <uri> element contains settings for members of the Uri class used by classes in the System.Net namespace. The settings configure support for IRI and IDN.
Example
Description
The following code example shows a configuration used by the Uri class to support IRI parsing and IDN names.
Code
<configuration>
<uri>
<idn enabled="All" />
<iriParsing enabled="true" />
</uri>
</configuration>