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

屬性值

UriIdnScope,包含 IDN 處理目前的組態設定。

屬性

備註

國際功能變數名稱 (IDN) 屬性只會控制 IDN 處理。 所有其他國際資源標識碼 (IRI) 處理 (字元正規化,例如預設會執行) 。

的組態設定IdnElement會由控制 類別中 System.Uri IRI 處理的組態設定間接控制System.Configuration.IriParsingElement。 必須啟用 IRI 處理才能進行 IDN 處理。 如果停用 IRI 處理,則 IDN 處理會設定為預設設定,此種情況下,.NET Framework 2.0 行為會用於相容性,但不使用 IDN 名稱。

建構第一個System.Uri類別時,將會讀取 的IdnElement組態設定。 該時間之後的組態設定變更會被忽略。

如需 IRI 支援的詳細資訊,請參閱 類別的 System.Uri 一節。

適用於

另請參閱