Editar

Compartir a través de


UriSection.Idn Property

Definition

Gets an IdnElement object that contains the configuration setting for International Domain Name (IDN) processing in the Uri class.

public:
 property System::Configuration::IdnElement ^ Idn { System::Configuration::IdnElement ^ get(); };
[System.Configuration.ConfigurationProperty("idn")]
public System.Configuration.IdnElement Idn { get; }
public System.Configuration.IdnElement Idn { get; }
[<System.Configuration.ConfigurationProperty("idn")>]
member this.Idn : System.Configuration.IdnElement
member this.Idn : System.Configuration.IdnElement
Public ReadOnly Property Idn As IdnElement

Property Value

The configuration setting for International Domain Name (IDN) processing in the Uri class.

Attributes

Remarks

The existing System.Uri class has been extended to provide support for International Resource Identifiers (IRI) and Internationalized Domain Names. Current users will not see any change from the .NET Framework 2.0 behavior unless they specifically enable IRI and IDN. This ensures application compatibility with prior versions of the .NET Framework.

The configuration settings for IRI and IDN can be retrieved using the UriSection class. The Idn property returns the configuration setting for IDN processing in the System.Uri class.

IRI processing must be enabled for IDN processing to be possible. If IRI processing is disabled, then IDN processing will be set to the default setting where the .NET Framework 2.0 behavior is used for compatibility and IDN names are not used.

The Internationalized Domain Name (IDN) attribute only controls IDN processing. All other IRI processing (character normalization, for example) is performed by default.

The configuration setting for the IdnElement will be read once when the first System.Uri class is constructed. Changes to configuration settings after that time are ignored.

For more information on IRI support, see the Remarks section for the System.Uri class.

Applies to

See also