UriFormat Enum

Definition

Controls how URI information is escaped.

public enum UriFormat
Inheritance
UriFormat

Fields

Name Value Description
UriEscaped 1

Escaping is performed according to the rules in RFC 2396.

Unescaped 2

No escaping is performed.

SafeUnescaped 3

Characters that have a reserved meaning in the requested URI components remain escaped. All others are not escaped.

Remarks

This enumeration is used by the GetComponents method to specify the level of character escaping in the returned URI.

RFC 2396 defines the standard escaping for URIs, and is available at https://rfc-editor.org.

SafeUnescaped leaves the following characters escaped if the character has a reserved meaning in the requested UriComponents: "%", "#", "?", "/", "\", and "@".

Applies to

Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.0, 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1
UWP 10.0