UriFormat 枚举

定义

控制 URI 信息的转义方式。

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

字段

名称 说明
UriEscaped 1

转义是根据 RFC 2396 中的规则执行的。

Unescaped 2

不执行转义。

SafeUnescaped 3

在请求的 URI 组件中具有保留含义的字符将保持转义。 所有其他内容都不会逃脱。

注解

此方法使用此 GetComponents 枚举来指定返回的 URI 中的字符转义级别。

RFC 2396 定义 URI 的标准转义,可在以下位置使用 https://rfc-editor.org

如果字符在请求 UriComponents的“%”、“#”、“?”、“/”、“\”和“@”中具有保留含义,则 SafeUnescaped 将保留以下字符进行转义。

适用于