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.example.com/aaa/bbb.html");

2:

string hostString = u.Host;

Notes

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

Links for reference

Copyright © Cooker All rights reserved.