This topic has not yet been rated - Rate this topic

GenericUriParserOptions Enumeration

Note: This enumeration is new in the .NET Framework version 2.0.

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)

[FlagsAttribute] 
public enum GenericUriParserOptions
/** @attribute FlagsAttribute() */ 
public enum GenericUriParserOptions
FlagsAttribute 
public enum GenericUriParserOptions
  Member name Description
Supported by the .NET Compact Framework AllowEmptyAuthority The parser allows a URI with no authority. 
Supported by the .NET Compact Framework Default The parser: 
  • requires an authority

  • converts back slashes into forward slashes

  • unescapes path dots, forward slashes, and back slashes

Supported by the .NET Compact Framework DontCompressPath The parser does not canonicalize the URI. 
Supported by the .NET Compact Framework DontConvertPathBackslashes The parser does not convert back slashes into forward slashes. 
Supported by the .NET Compact Framework DontUnescapePathDotsAndSlashes The parser does not unescape path dots, forward slashes, or back slashes. 
Supported by the .NET Compact Framework GenericAuthority The parser allows a registry-based authority. 
Supported by the .NET Compact Framework NoFragment The scheme does not define a fragment part. 
Supported by the .NET Compact Framework NoPort The scheme does not define a port. 
Supported by the .NET Compact Framework NoQuery The scheme does not define a query part. 
Supported by the .NET Compact Framework NoUserInfo The scheme does not define a user information part. 

You can combine any of these options to configure a generic URI parser by passing the options as a parameter to the System.GenericUriParser constructor.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

.NET Compact Framework

Supported in: 2.0
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ