UriFormat Enumeration
.NET Framework (current version)
Controls how URI information is escaped.
Assembly: System (in System.dll)
| Member name | Description | |
|---|---|---|
| SafeUnescaped | Characters that have a reserved meaning in the requested URI components remain escaped. All others are not escaped. See Remarks. | |
| Unescaped | No escaping is performed. | |
| UriEscaped | Escaping is performed according to the rules in RFC 2396. |
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 http://rfc-editor.org.
SafeUnescaped leaves the following characters escaped if the character has a reserved meaning in the requested UriComponents: "%", "#", "?", "/", "\", and "@".
Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Show: