O'Reilly logo

A Programmer's Guide to .NET by Alexei Fedorov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required