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)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Function WriteAuditEventUnlimitedData ( _
eventId As SPAuditEventType, _
eventSource As String, _
xmlData As String _
) As Boolean
'Usage
Dim instance As SPAudit
Dim eventId As SPAuditEventType
Dim eventSource As String
Dim xmlData As String
Dim returnValue As Boolean
returnValue = instance.WriteAuditEventUnlimitedData(eventId, _
eventSource, xmlData)
public bool WriteAuditEventUnlimitedData(
SPAuditEventType eventId,
string eventSource,
string xmlData
)
Parameters
eventId
Type: Microsoft.SharePoint.SPAuditEventTypeThe kind of event that is being recorded.
eventSource
Type: System.StringThe name of the calling application.
xmlData
Type: System.StringInformation about the event.
Return Value
Type: System.Boolean
true if the write operation is successful; otherwise, false.
Remarks
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.