Delete a virtual host associated with the specified server.
object.DeleteHost( HostId )
- An integer value which identifies the virtual host.
A value of zero is returned if the virtual host was deleted. Otherwise,
a non-zero error code is returned which indicates the cause of the failure.
The DeleteHost method removes a virtual host that
was created by a previous call to the AddHost method. All
virtual paths and users associated with the specified host are no longer
valid. It is not necessary to call this method to delete any of the
virtual hosts prior to stopping the server. Part of the normal shutdown
process is releasing the resources allocated for each virtual host that
was added to the server.
This method cannot be used to delete the virtual host with an ID
of zero, which is the default virtual host that is allocated when the
server is started.