SPAudit.WriteAuditEventUnlimitedData method (SPAuditEventType, String, String)

Writes an unrestricted volume of data to the audit history in the SharePoint database.

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

public bool WriteAuditEventUnlimitedData(
	SPAuditEventType eventId,
	string eventSource,
	string xmlData
)

Parameters

eventId
Type: Microsoft.SharePoint.SPAuditEventType

The kind of event that is being recorded.

eventSource
Type: System.String

The name of the calling application.

xmlData
Type: System.String

Information about the event.

Return value

Type: System.Boolean
true if the write operation is successful; otherwise, false.

This method does not restrict the volume of data that can be written to the database. For that reason, the use of this method should be avoided. This method should be used only for the internal events of content types, for which large volumes of data must be written.

Show: