Share via


SPAudit.UseAuditFlagCache property

Gets or sets a value indicating whether the audit configuration for the site collection should be cached on the local machine.

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

Syntax

'Declaration
Public Property UseAuditFlagCache As Boolean
    Get
    Set
'Usage
Dim instance As SPAudit
Dim value As Boolean

value = instance.UseAuditFlagCache

instance.UseAuditFlagCache = value
public bool UseAuditFlagCache { get; set; }

Property value

Type: System.Boolean
true if the audit configuration should be cached; otherwise, false. The default is false.

Exceptions

Exception Condition
SystemInvalidOperationException

The parent object that has this SPAudit object as the value if its Audit property is not an SPSite.

Remarks

Call UseAuditFlagCache only if the parent object that has this SPAudit object as the value if its Audit property is an SPSite object.

See also

Reference

SPAudit class

SPAudit members

Microsoft.SharePoint namespace