public CAMLQueryFilter RetrieveFilter() { CAMLQueryFilter camlQueryFilter; try { if (IsBuildComplete) { camlQueryFilter = null; } else { CAMLQueryFilter camlQueryFilter1 = new CAMLQueryFilter() { query = Query.ToString() }; camlQueryFilter = camlQueryFilter1; } } catch (Exception exception) { throw exception; } return(camlQueryFilter); }
public void ANDFilter(CAMLQueryFilter filter) { try { if (IsBuildComplete) { throw new Exception("Cannot AND after Build() method is called"); } Query = string.Format(Markups.And, filter.ToString(), Query); } catch (Exception exception) { throw exception; } }
public CAMLQueryBuilder(CAMLQueryFilter filter) { Markups.InitializeMarkups(); try { if (string.IsNullOrEmpty(filter.ToString())) { throw new Exception("Filter passed does not contain any values"); } Query = filter.ToString(); IsBuildComplete = false; } catch (Exception exception) { throw exception; } }