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, Options=System.Configuration.ConfigurationPropertyOptions.IsKey | System.Configuration.ConfigurationPropertyOptions.IsRequired)]
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
[<System.Configuration.ConfigurationProperty("enabled", DefaultValue=System.UriIdnScope.None, Options=System.Configuration.ConfigurationPropertyOptions.IsKey | System.Configuration.ConfigurationPropertyOptions.IsRequired)>]
member this.Enabled : UriIdnScope with get, set
Public Property Enabled As UriIdnScope

属性值

UriIdnScope

一个 UriIdnScope,其中包含用于 IDN 处理的当前配置设置。

属性

注解

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

配置设置 IdnElementSystem.Configuration.IriParsingElement 控制类中 System.Uri IRI 处理的配置设置间接控制。 必须启用 IRI 处理才能进行 IDN 处理。 如果禁用 IRI,IDN 处理将被设置为默认值,这时 NET Framework 2.0 行为用于兼容性,并且 IDN 名称不可用。

构造第一System.Uri个类时,将读取该设置的配置设置IdnElement。 忽略时间后更改为默认设置。

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

适用于

另请参阅