Skip to content

URIHelpers.Hostname.AppendSubdomain

Andrew Lambert edited this page Jun 13, 2017 · 3 revisions

URIHelpers.Hostname.AppendSubdomain

Method Signature

 Sub AppendSubdomain(SubName As String)

Remarks

Appends a subdomain to the host.

Example

This example builds the hostname www.example.com by appending subdomains to an empty hostname. Note how subdomains are appended in "reverse" order since "www" is a subdomain of "example", which in turn is a subdomain of "com".

Dim h As URIHelpers.Hostname = "" ' an empty hostname
h.AppendSubdomain("com")
h.AppendSubdomain("example")
h.AppendSubdomain("www")
Clone this wiki locally