uri class : HostNameType getter

Description

Gets the host name type of the URI.

Syntax

uriInstance.HostNameType

Arguments

None.

Return value

ClassDescription
stringThe host name type of the URI.

Sample code

1:

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

2:

string typeString = u.HostNameType;

Notes

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

Links for reference

Copyright © Cooker All rights reserved.