IdnElement.Enabled Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the value of the IdnElement configuration setting.
public:
property UriIdnScope Enabled { UriIdnScope get(); void set(UriIdnScope value); };
[System.Configuration.ConfigurationProperty("enabled", DefaultValue=System.UriIdnScope.None)]
public UriIdnScope Enabled { get; set; }
public UriIdnScope Enabled { get; set; }
[<System.Configuration.ConfigurationProperty("enabled", DefaultValue=System.UriIdnScope.None)>]
member this.Enabled : UriIdnScope with get, set
member this.Enabled : UriIdnScope with get, set
Public Property Enabled As UriIdnScope
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
See also
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應