AuditLogTrimmingReportCallout.SetAuditReportStorageLocation method

Sets the storage location for audit log reports that are generated by the periodic trimming job.

Namespace:  Microsoft.Office.RecordsManagement.Reporting
Assembly:  Microsoft.Office.Policy (in Microsoft.Office.Policy.dll)

Syntax

'Declaration
Public Shared Sub SetAuditReportStorageLocation ( _
    site As SPSite, _
    strFolder As String _
)
'Usage
Dim site As SPSite
Dim strFolder As StringAuditLogTrimmingReportCallout.SetAuditReportStorageLocation(site, _
    strFolder)
public static void SetAuditReportStorageLocation(
    SPSite site,
    string strFolder
)

Parameters

  • site
    Type: Microsoft.SharePoint.SPSite

    The site that is the storage location for audit log reports that are generated by the periodic trimming job.

  • strFolder
    Type: System.String

    The server-relative URL of the folder to store the audit log reports.

Exceptions

Exception Condition
ArgumentNullException

Site is a null reference (Nothing in Visual Basic) or the folder cannot be found.

See also

Reference

AuditLogTrimmingReportCallout class

AuditLogTrimmingReportCallout members

Microsoft.Office.RecordsManagement.Reporting namespace