SPAudit Methods

Include Protected Members
Include Inherited Members

The SPAudit type exposes the following members.

Methods

  Name Description
Public method DeleteEntries Deletes all audit events that occurred before the specified date and time from the SharePoint database.
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method 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.
Public method GetEntries(SPAuditQuery) Gets a collection of SPAuditEntry objects from the audit data stored in the SharePoint database that match the specified query.
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method TrimAuditLog
Public method Update Updates the SharePoint database with changes to the AuditFlags property
Public method WriteAuditEvent(String, String, String) Writes a record about an event to the SharePoint database.
Public method WriteAuditEvent(SPAuditEventType, String, String) Writes a record about an event to the SharePoint database.
Public method WriteAuditEvent(String, String, Int32, String) Writes the audit entry with customized user ID.
Public methodStatic member WriteAuditEvent(SPWeb, String, SPAuditItemType, SPAuditEventType, String, String, String) Writes an unrestricted volume of data to the audit history in the SharePoint database.
Public method WriteAuditEventUnlimitedData(String, String, String) Writes an unrestricted volume of data to the audit history in the SharePoint database.
Public method WriteAuditEventUnlimitedData(SPAuditEventType, String, String) Writes an unrestricted volume of data to the audit history in the SharePoint database.

Top

See Also

Reference

SPAudit Class

Microsoft.SharePoint Namespace