AuditLogTrimmingReportCallout.GetAuditReportStorageLocation Method
Gets 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 Function GetAuditReportStorageLocation ( _
site As SPSite, _
fThrowIfNotExists As Boolean _
) As SPFolder
'Usage
Dim site As SPSite
Dim fThrowIfNotExists As Boolean
Dim returnValue As SPFolder
returnValue = AuditLogTrimmingReportCallout.GetAuditReportStorageLocation(site, _
fThrowIfNotExists)
public static SPFolder GetAuditReportStorageLocation(
SPSite site,
bool fThrowIfNotExists
)
Parameters
site
Type: Microsoft.SharePoint.SPSiteThe site that is the storage location for the audit log reports that are generated by the periodic trimming job.
fThrowIfNotExists
Type: System.BooleanWhether to throw an exception if the folder doesn’t exist.
Return Value
Type: Microsoft.SharePoint.SPFolder
Returns SPFolder.
Exceptions
Exception | Condition |
---|---|
DirectoryNotFoundException | When the fThrowIfNotExists parameter is true and the folder does not exist. |
See Also
Reference
AuditLogTrimmingReportCallout Class