语言

IdnElement.Enabled 属性

定义

获取或设置配置设置的值 IdnElement 。

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

属性值

包含用于 IDN 处理的当前配置设置的 A UriIdnScope 。

特性

注解

国际域名(IDN)属性仅控制 IDN 处理。 所有其他国际资源标识符(IRI)处理(例如字符规范化)默认执行。

配置设置 IdnElement 由 System.Configuration.IriParsingElement 控制类中 System.Uri IRI 处理的配置设置间接控制。 必须启用 IRI 处理才能实现 IDN 处理。 如果禁用 IRI 处理,则 IDN 处理将设置为默认设置,其中 .NET Framework 2.0 行为用于兼容性,并且不使用 IDN 名称。

构造第一IdnElement个类时,将读取该设置的配置设置System.Uri。 之后对配置设置的更改将被忽略。

有关 IRI 支持的详细信息,请参阅该类的 System.Uri “备注”部分。

适用于

另请参阅