Defines a query of the audit entries of the SharePoint database.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
The fundamental scope of any query is always a site collection; but you can use the members of the class to restrict a query to particular date ranges, users, event types, lists, and list items.
This class is primarily used as a parameter to the GetEntries(SPAuditQuery) method.
You cannot use this class to query the SharePoint database for anything other than the records of audited events.
The following example (from Item-Level Auditing with SharePoint Server 2007) shows this class in use.