GenericUriParserOptions Enumeration
Microsoft Silverlight will reach end of support after October 2021. Learn more.
Specifies options for a UriParser.
This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.
Namespace: System
Assembly: System (in System.dll)
Syntax
'Declaration
<FlagsAttribute> _
Public Enumeration GenericUriParserOptions
[FlagsAttribute]
public enum GenericUriParserOptions
Members
Member name | Description | |
---|---|---|
Default | The parser:
|
|
GenericAuthority | The parser allows a registry-based authority. | |
AllowEmptyAuthority | The parser allows a URI with no authority. | |
NoUserInfo | The scheme does not define a user information part. | |
NoPort | The scheme does not define a port. | |
NoQuery | The scheme does not define a query part. | |
NoFragment | The scheme does not define a fragment part. | |
DontConvertPathBackslashes | The parser does not convert back slashes into forward slashes. | |
DontCompressPath | The parser does not canonicalize the URI. | |
DontUnescapePathDotsAndSlashes | The parser does not unescape path dots, forward slashes, or back slashes. | |
Idn | The parser supports Internationalized Domain Name (IDN) parsing (IDN) of host names. Whether IDN is used is dictated by configuration values. See the Remarks for more information. | |
IriParsing | The parser supports the parsing rules specified in RFC 3987 for International Resource Identifiers (IRI). Whether IRI is used is dictated by configuration values. See the Remarks for more information. |
Remarks
You can combine any of these options to configure a generic URI parser by passing the options as a parameter to the GenericUriParser.GenericUriParser(GenericUriParserOptions) constructor.
The existing System.Uri class in Silverlight does not currently provide support for International Resource Identifier (IRI) or Internationalized Domain Name (IDN) parsing applied to the domain name.
Silverlight applications cannot derive new classes from the Uri class.
For more information on IRI support, see the Remarks section for the System.Uri class.
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.