I've tried simply using Dynamicweb.Content.Area.GetAreas(), but the areas that are returned only have a "domain" property, which appears to have all domains for the area, in one string (which doesn't seem too useful).
Hi Jonas! :)
You can get the primary domain by another property...
string primaryDomain = area.DomainLock;
You must be logged in to post in the forum