private void UpdateZWSID() { ++curZWSID; if (curZWSID == ZWSIDs.Length) { throw new Exception("Exceeded rate limit."); } ZWSID = ZWSIDs[curZWSID]; SearchClient.RemoveDefaultParameter("zws-id"); SearchClient.AddDefaultParameter("zws-id", ZWSID, ParameterType.GetOrPost); }