Using List Object Model
SPList list = SPContext.Current.Web.Lists["Interview"]; list.EnableThrottling = false; SPListItemCollection items = list.GetItems(listQuery);
Use in SPQuery
SPQuery listQuery = new SPQuery();
listQuery.Query = query;
listQuery.QueryThrottleMode = SPQueryThrottleOption.Override;
SPList list = SPContext.Current.Web.Lists["Interview"];
SPListItemCollection items = list.GetItems(listQuery);
listQuery.Query = query;
listQuery.QueryThrottleMode = SPQueryThrottleOption.Override;
SPList list = SPContext.Current.Web.Lists["Interview"];
SPListItemCollection items = list.GetItems(listQuery);
No comments:
Post a Comment