共用方式為


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)
Available in Sandboxed Solutions: No

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