AuditTrailService.Settings Property
Provides access to the service’s settings. These settings allow you to customize the list of objects and properties that should be audited.
Namespace: DevExpress.Persistent.AuditTrail
Assembly: DevExpress.Persistent.BaseImpl.v20.2.dll
NuGet Package: DevExpress.Persistent.BaseImpl
Declaration
Property Value
Type | Description |
---|---|
DevExpress.Persistent.AuditTrail.AuditTrailSettings | The the AuditTrailSettings object that contains service’s settings. |
Remarks
The following example demonstrates how to get this property value:
using DevExpress.ExpressApp.Win;
using DevExpress.Persistent.AuditTrail;
// ...
public class MySolutionWinApplication : WinApplication {
// ...
protected override void OnLoggedOn(LogonEventArgs args) {
base.OnLoggedOn(args);
foreach (AuditTrailClassInfo info in AuditTrailService.Instance.Settings.TypesToAudit) {
AuditTrailService.Instance.Settings.RemoveType(info.ClassInfo.ClassType);
}
}
}
See Also