UriFormat UriFormat UriFormat UriFormat Enum

定义

控制 URI 信息的转义方式。Controls how URI information is escaped.

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

字段

SafeUnescaped SafeUnescaped SafeUnescaped SafeUnescaped 3

在请求的 URI 组成部分中具有保留意义的字符将仍然进行转义。Characters that have a reserved meaning in the requested URI components remain escaped. 所有其他字符不进行转义。All others are not escaped.

Unescaped Unescaped Unescaped Unescaped 2

未执行任何转义。No escaping is performed.

UriEscaped UriEscaped UriEscaped UriEscaped 1

根据 RFC 2396 中的规则执行转义。Escaping is performed according to the rules in RFC 2396.

注解

此枚举由GetComponents方法,以指定在返回的 URI 中的字符转义的级别。This enumeration is used by the GetComponents method to specify the level of character escaping in the returned URI.

RFC 2396 定义的标准转义的 Uri,并可通过 http://rfc-editor.org RFC 2396 defines the standard escaping for URIs, and is available at http://rfc-editor.org.

SafeUnescaped 离开以下字符转义如果字符在请求中具有保留的意义UriComponents:"%"、"#"、"?","/","\",和"@"。</span><span class="sxs-lookup">SafeUnescaped leaves the following characters escaped if the character has a reserved meaning in the requested UriComponents: "%", "#", "?", "/", "\", and "@".

适用于