Windows Dev Center

Expand Minimize

UriFormat Enumeration

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

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

© 2015 Microsoft