UriFormat 列舉

定義

控制 URI 資訊的逸出方式。

public enum class UriFormat
public enum UriFormat
type UriFormat = 
Public Enum UriFormat
繼承
UriFormat

欄位

SafeUnescaped 3

在所要求的 URI 元件中,有保留意義的字元仍維持逸出。 其他字元則不逸出。

Unescaped 2

不執行逸出。

UriEscaped 1

依據 RFC 2396 規則執行逸出。

備註

這個列舉是由 GetComponents 方法用來指定傳回 URI 中的字元逸出層級。

RFC 2396 定義 URI 的標準逸出,可在 取得 https://rfc-editor.org

如果字元在要求的 UriComponents 中具有保留意義,SafeUnescaped 會離開下列字元:「%」、「#」、「?」、「/」、「 \ 」 和 「@」。

適用於