public static void UpdateZoneData(string filename, URLZone urlz) { if (urlz < URLZone.URLZONE_PREDEFINED_MIN || urlz > URLZone.URLZONE_USER_MAX) { throw new InvalidURLZoneException(); } // EraseZoneData requires an absolute path SetZoneData(System.IO.Path.GetFullPath(filename), (uint)urlz); }