Share via


SPAuditEntryCollection.ToString method

Gets every SPAuditEntry in the collection expressed in XML.

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

Syntax

'Declaration
Public Overrides Function ToString As String
'Usage
Dim instance As SPAuditEntryCollection
Dim returnValue As String

returnValue = instance.ToString()
public override string ToString()

Return value

Type: System.String
An XML String that represents all the event records in the database.

Remarks

The return value begins with a <AuditData> tag and ends with a </AuditData> tag. Between the tags is each audit entry from the database expressed in XML. For more information about this XML refer to ToString.

Note

: Using this method when the number of elements in the collection is greater than 1000 can create a string in memory that is large enough to adversely affect performance.

See also

Reference

SPAuditEntryCollection class

SPAuditEntryCollection members

Microsoft.SharePoint namespace