語言

UriFormat 列舉

定義

控制如何逸出 URI 資訊。

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

欄位

名稱 值 Description
UriEscaped 1

逃脫依據RFC 2396的規則執行。

Unescaped 2

沒有逃脫。

SafeUnescaped 3

在請求的 URI 元件中具有保留意義的字元仍會被逃逸。 其他的都無法逃脫。

備註

此列舉被方法用 GetComponents 來指定回傳 URI 中逃逸字元的層級。

RFC 2396 定義了 URI 的標準逃逸,並可於 https://rfc-editor.org。

如果該字元在請求 UriComponents中具有保留意義,SafeUnescaped 會將以下字元保留為 esscape:「%」、「#」、「?」、「/」、「\」和「@」。

適用於