Partilhar via


SPAuditEntryCollection.ToString Method

Gets every SPAuditEntry in the collection expressed in XML.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

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