SPAuditQuery.RestrictToList method

Restricts the query to events relevant to the specified list.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

public void RestrictToList(
	SPList list


Type: Microsoft.SharePoint.SPList

An SPList object that identifies the list whose audit events are included in the query.

Some events, such as ChildMove and ChildDelete, are considered relevant to the list and are included in a query that is restricted to the list, even though they refer indirectly to an event (Move or Delete) that occurred on an item in the list.

If RestrictToListItem is called, the query is restricted to the parent of the item passed to RestrictToListItem and you should not call RestrictToList too.