SPAudit Members

Include Protected Members
Include Inherited Members

Enables auditing of how site collections, sites, lists, folders, and list items are accessed, changed, and used.

The SPAudit type exposes the following members.

Properties

Name Description
AuditFlags Gets or sets a value indicating what kinds of events and actions are audited.
UseAuditFlagCache Gets or sets a value indicating whether the audit configuration for the site collection should be cached on the local machine.

Top

Methods

Name Description
DeleteEntries Deletes all audit events that occurred before the specified date and time from the SharePoint database.
Equals (Inherited from Object.)
Finalize (Inherited from Object.)
GetEntries() Gets a collection of SPAuditEntry objects from the audit data stored in the SharePoint database, without restriction as to date, user, or event type.
GetEntries(SPAuditQuery) Gets a collection of SPAuditEntry objects from the audit data stored in the SharePoint database that match the specified query.
GetHashCode (Inherited from Object.)
GetType (Inherited from Object.)
MemberwiseClone (Inherited from Object.)
ToString (Inherited from Object.)
Update Updates the SharePoint database with changes to the AuditFlags property
WriteAuditEvent(String, String, String) Writes a record about an event to the SharePoint database.
WriteAuditEvent(SPAuditEventType, String, String) Writes a record about an event to the SharePoint database.

Top

See Also

Reference

SPAudit Class

Microsoft.SharePoint Namespace