4.5. Helper classes

The System namespace contains two helper classes – the Uri and UriBuilder classes. These can be used to manipulate the contents of URIs. The Uri class provides easy access to the parts of the URI. The properties of the Uri class are read only – to modify a Uri class instance we should use the UriBuilder class.

The Uri class contains the following read-only String-type fields that specify the characters and schemes.

  • SchemeDelimiter Specifies the characters that separate the communication protocol scheme from the address portion of the URI.

  • UriSchemeFile Specifies that the URI is a pointer to a file.

  • UriSchemeFtp Specifies that the URI is accessed via the file transfer protocol (FTP).

  • UriSchemeGopher Specifies that the URI ...

Get A Programmer's Guide to .NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.