UriFormat UriFormat UriFormat UriFormat Enum

Definition

Controls how URI information is escaped.

public enum class UriFormat
public enum UriFormat
type UriFormat = 
Public Enum UriFormat
Inheritance

Fields

SafeUnescaped SafeUnescaped SafeUnescaped SafeUnescaped 3

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

Unescaped Unescaped Unescaped Unescaped 2

No escaping is performed.

UriEscaped UriEscaped UriEscaped UriEscaped 1

Escaping is performed according to the rules in RFC 2396.

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 http://rfc-editor.org.

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

Applies to