英語で読む 編集

次の方法で共有


IdnElement.Enabled Property

Definition

Gets or sets the value of the IdnElement configuration setting.

C#
[System.Configuration.ConfigurationProperty("enabled", DefaultValue=System.UriIdnScope.None)]
public UriIdnScope Enabled { get; set; }
C#
public UriIdnScope Enabled { get; set; }

Property Value

A UriIdnScope that contains the current configuration setting for IDN processing.

Attributes

Remarks

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

The configuration setting for the IdnElement is indirectly controlled by the System.Configuration.IriParsingElement configuration setting that controls IRI 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 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

製品 バージョン
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10

See also