1

If we have

SPAuditQuery auditQuery = new SPAuditQuery(context.Site);

auditQuery.RestrictToListItem(item);


auditQuery.RowLimit = (uint)numberOfEvents;
auditQuery.SetRangeStart(startRange);
auditQuery.SetRangeEnd(endRage);

It will return the records in a descending order, I can then sort that results but if the user set a RowLimit, start and end Range Date, there's a big change that I will just get the results from the startRange and I'm insterested in show the most recent audits.

2
  • What is your question exactly? Commented Jan 24, 2013 at 18:53
  • when you create a SPAuditQuery, you can set options like RowLimit, SetRangeStart, SetRangeEnd and so on, before calling the GetEntries Method (context.Site.Audit.GetEntries(auditQuery);), the query results (entries) are sorted by Ocurred date Ascending, my question is if there's a way to change that. Commented Jan 24, 2013 at 20:41

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.