SPAuditEntryCollection class

Provides a container for SPAuditEntry objects.

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

'Declaration
Public NotInheritable Class SPAuditEntryCollection _
	Inherits SPBaseCollection
'Usage
Dim instance As SPAuditEntryCollection

This class is primarily used as the return value for GetEntries.

The following example (from Item-Level Auditing with SharePoint Server 2007) shows this class in use.

Dim wssQuery As New SPAuditQuery(siteCollection)
wssQuery.RestrictToListItem(item)
Dim auditCol As SPAuditEntryCollection = site.Audit.GetEntries(wssQuery)

For Each entry As SPAuditEntry In auditCol
  ' get info from audit log
Next entry

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: