Condividi tramite


UriFormat Enumeration

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Controls how URI information is escaped.

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

Syntax

'Declaration
Public Enumeration UriFormat
public enum UriFormat

Members

Member name Description
Supported by Silverlight for Windows PhoneSupported by Xbox 360 UriEscaped Escaping is performed according to the rules in RFC 3986.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 Unescaped No escaping is performed.
Supported by Silverlight for Windows PhoneSupported by Xbox 360 SafeUnescaped Characters that have a reserved meaning in the requested URI components remain escaped. All others are not escaped. See Remarks.

Remarks

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

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

See Also

Reference