SPAuditEventSource enumeration

Specifies whether an audited event occurred programmatically or as a result of user action through the SharePoint Foundation UI.

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

public enum SPAuditEventSource

Member nameDescription
SharePointAn audited event raised by user action.
ObjectModelA programmatically raised audited event.

These values are used primarily for the SPAuditEntry.EventSource property.

One purpose served by this enumeration is to prevent a rogue solution developer from programmatically creating audit entries that appear to have been created by user action in the SharePoint Foundation UI.