Hi,
As our list of Host Names managed in the Admin -> Config -> Edit Websites screen is growing we would like to be able to read / write this list programmatically. Is there a way to do so?
Never tried it before, but you could try:
SiteDefinition.Current.Hosts.Add(new HostDefinition() { .... });
Thanks. However the SiteDefinition.Current.Hosts List is read only.
If you just want to add or remove HostDefinition to Hosts, it should work
If you want to set value of Hosts, you must call CreateWritableClone() to create a writable instance.
/Q
Hi,
As our list of Host Names managed in the Admin -> Config -> Edit Websites screen is growing we would like to be able to read / write this list programmatically. Is there a way to do so?