uri class : Host getter
Description
Gets the host portion of the URI.
Syntax
uriInstance.Host
Arguments
None.
Return value
Class | Description |
string | The host portion of the URI. |
Sample code
1: | uri u = new uri("http://www.example.com/aaa/bbb.html"); |
2: | string hostString = u.Host; |
Notes
It's a wrapper of the System.Uri.Host property.