示例#1
0
 /// <summary>
 /// Specify the query's order-by options through the specified <paramref name=" fieldName"/>
 /// and <paramref name="order"/>.
 /// </summary>
 /// <param name="fieldName">Field name to perform the ordering on.</param>
 /// <param name="order">Order direction.</param>
 /// <returns>Returns the query itself.</returns>
 public CamlQuery OrderBy(string fieldName, CamlOrderByFieldOrder order)
 {
     orderByFields.Add(new CamlOrderByField(fieldName, order));
     return(this);
 }
示例#2
0
 public CamlOrderByField(string fieldName, CamlOrderByFieldOrder order)
 {
     FieldName = fieldName;
     Order     = order;
 }