-
Notifications
You must be signed in to change notification settings - Fork 1
URIHelpers.Hostname.AppendSubdomain
Andrew Lambert edited this page Jun 13, 2017
·
3 revisions
URIHelpers.Hostname.AppendSubdomain
Sub AppendSubdomain(SubName As String)
Appends a subdomain to the host.
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")