SPAuditEntry.EventSource Property

A value that indicates whether the event occurred as a result of user action in the Windows SharePoint Services 3.0 user interface (UI) or programmatically.

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

Syntax

Public ReadOnly Property EventSource As SPAuditEventSource
    Get

Dim instance As SPAuditEntry
Dim value As SPAuditEventSource

value = instance.EventSource
public SPAuditEventSource EventSource { get; }

Property Value

Type: Microsoft.SharePoint.SPAuditEventSource
An SPAuditEventSource value that specifies whether the event was caused by code that uses the Windows SharePoint Services 3.0 object model (specifically, one of the WriteAuditEvent methods) or by a user through the UI of the Windows SharePoint Services 3.0 deployment.

Remarks

If the value of EventSource is ObjectModel, the SourceName property can identify the application that called WriteAuditEvent.

One purpose of this property is to ensure that a rogue developer cannot programmatically create audit entries that appear to have been created by user action in the UI.

See Also

Reference

SPAuditEntry Class

SPAuditEntry Members

Microsoft.SharePoint Namespace