UriFormat Enumeration
Collapse the table of content
Expand the table of content

UriFormat Enumeration

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Controls how URI information is escaped.

Namespace:  System
Assembly:  System (in System.dll)

public enum UriFormat

Member nameDescription
SafeUnescapedCharacters that have a reserved meaning in the requested URI components remain escaped. All others are not escaped. See Remarks.
UnescapedNo escaping is performed.
UriEscapedEscaping is performed according to the rules in RFC 3986.

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

RFC 3986 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 "@".

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2017 Microsoft