コード例 #1
0
        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);
        }
コード例 #2
0
 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;
     }
 }
コード例 #3
0
        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;
            }
        }