Home Notices Documents Classes Download Others Rice
Classes  >  uri  >  Host
uri class : Host getter

Description

Gets the host portion of the URI.

Syntax

uriInstance.Host

Arguments

None.

Return value

ClassDescription
stringThe host portion of the URI.

Sample code

1:

uri u = new uri("http://www.somewhere.com/aaa/bbb.html");

2:

string hostString = u.Host;

Notes

It's a wrapper of the System.Uri.Host property.

Links for reference

Copyright © Rice All rights reserved.