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)

Syntax

'Declaration
Public Enumeration SPAuditEventSource
'Usage
Dim instance As SPAuditEventSource
public enum SPAuditEventSource

Members

Member name Description
SharePoint An audited event raised by user action.
ObjectModel A programmatically raised audited event.

Remarks

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.

See also

Reference

Microsoft.SharePoint namespace